Adjust samba 3 to the new gpo API. Still untested code.
[ira/wip.git] / libgpo / gpext / gpext.h
index a3f9368f6943efcced913d4c1aeb3935640060ed..60d9bab8ea825d854d41c55f053fe35ee68b1d83 100644 (file)
@@ -65,7 +65,7 @@ struct gp_extension_methods {
                                         TALLOC_CTX *mem_ctx,
                                         uint32_t flags,
                                         struct registry_key *root_key,
-                                        const struct nt_user_token *token,
+                                        const NT_USER_TOKEN *token,
                                         struct GROUP_POLICY_OBJECT *gpo,
                                         const char *extension_guid,
                                         const char *snapin_guid);
@@ -73,7 +73,7 @@ struct gp_extension_methods {
        NTSTATUS (*process_group_policy2)(ADS_STRUCT *ads,
                                         TALLOC_CTX *mem_ctx,
                                         uint32_t flags,
-                                        const struct nt_user_token *token,
+                                        const NT_USER_TOKEN *token,
                                         struct GROUP_POLICY_OBJECT *gpo_list,
                                         const char *extension_guid);
 
@@ -83,4 +83,44 @@ struct gp_extension_methods {
        NTSTATUS (*shutdown)(void);
 };
 
+/* The following definitions come from libgpo/gpext/gpext.c  */
+
+struct gp_extension *get_gp_extension_list(void);
+NTSTATUS unregister_gp_extension(const char *name);
+NTSTATUS register_gp_extension(TALLOC_CTX *gpext_ctx,
+                              int version,
+                              const char *name,
+                              const char *guid,
+                              struct gp_extension_methods *methods);
+NTSTATUS gp_ext_info_add_entry(TALLOC_CTX *mem_ctx,
+                              const char *module,
+                              const char *ext_guid,
+                              struct gp_extension_reg_table *table,
+                              struct gp_extension_reg_info *info);
+NTSTATUS shutdown_gp_extensions(void);
+NTSTATUS init_gp_extensions(TALLOC_CTX *mem_ctx);
+NTSTATUS free_gp_extensions(void);
+void debug_gpext_header(int lvl,
+                       const char *name,
+                       uint32_t flags,
+                       struct GROUP_POLICY_OBJECT *gpo,
+                       const char *extension_guid,
+                       const char *snapin_guid);
+NTSTATUS process_gpo_list_with_extension(ADS_STRUCT *ads,
+                          TALLOC_CTX *mem_ctx,
+                          uint32_t flags,
+                          const NT_USER_TOKEN *token,
+                          struct GROUP_POLICY_OBJECT *gpo_list,
+                          const char *extension_guid,
+                          const char *snapin_guid);
+NTSTATUS gpext_process_extension(ADS_STRUCT *ads,
+                                TALLOC_CTX *mem_ctx,
+                                uint32_t flags,
+                                const NT_USER_TOKEN *token,
+                                struct registry_key *root_key,
+                                struct GROUP_POLICY_OBJECT *gpo,
+                                const char *extension_guid,
+                                const char *snapin_guid);
+
+
 #endif /* __GPEXT_H__ */