]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10117 build: fix slap-config.h decls for Windows DLLs
authorHoward Chu <hyc@openldap.org>
Thu, 19 Oct 2023 17:46:54 +0000 (18:46 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 11 Jan 2024 18:55:19 +0000 (18:55 +0000)
servers/slapd/slap-config.h

index 3252fd780a6e12ea0643dd5e7fa3eaa91fdaabce..568220425a89c96265077a81a133e1274ab544d5 100644 (file)
@@ -196,31 +196,31 @@ typedef struct config_args_s {
 #define value_ndn values.v_dn.vdn_ndn
 #define value_ad values.v_ad
 
-int config_fp_parse_line(ConfigArgs *c);
-
-int config_register_schema(ConfigTable *ct, ConfigOCs *co);
-int config_del_vals(ConfigTable *cf, ConfigArgs *c);
-int config_get_vals(ConfigTable *ct, ConfigArgs *c);
-int config_add_vals(ConfigTable *ct, ConfigArgs *c);
-
-int config_push_cleanup(ConfigArgs *c, ConfigDriver *cleanup);
-int config_run_cleanup(ConfigArgs *c);
-
-void init_config_argv( ConfigArgs *c );
-int init_config_attrs(ConfigTable *ct);
-int init_config_ocs( ConfigOCs *ocs );
-void config_parse_ldif( ConfigArgs *c );
-int config_parse_vals(ConfigTable *ct, ConfigArgs *c, int valx);
-int config_parse_add(ConfigTable *ct, ConfigArgs *c, int valx);
-int read_config_file(const char *fname, int depth, ConfigArgs *cf,
+LDAP_SLAPD_F (int) config_fp_parse_line(ConfigArgs *c);
+
+LDAP_SLAPD_F (int) config_register_schema(ConfigTable *ct, ConfigOCs *co);
+LDAP_SLAPD_F (int) config_del_vals(ConfigTable *cf, ConfigArgs *c);
+LDAP_SLAPD_F (int) config_get_vals(ConfigTable *ct, ConfigArgs *c);
+LDAP_SLAPD_F (int) config_add_vals(ConfigTable *ct, ConfigArgs *c);
+
+LDAP_SLAPD_F (int) config_push_cleanup(ConfigArgs *c, ConfigDriver *cleanup);
+LDAP_SLAPD_F (int) config_run_cleanup(ConfigArgs *c);
+
+LDAP_SLAPD_F (void) init_config_argv( ConfigArgs *c );
+LDAP_SLAPD_F (int) init_config_attrs(ConfigTable *ct);
+LDAP_SLAPD_F (int) init_config_ocs( ConfigOCs *ocs );
+LDAP_SLAPD_F (void) config_parse_ldif( ConfigArgs *c );
+LDAP_SLAPD_F (int) config_parse_vals(ConfigTable *ct, ConfigArgs *c, int valx);
+LDAP_SLAPD_F (int) config_parse_add(ConfigTable *ct, ConfigArgs *c, int valx);
+LDAP_SLAPD_F (int) read_config_file(const char *fname, int depth, ConfigArgs *cf,
        ConfigTable *cft );
 
-ConfigTable * config_find_keyword(ConfigTable *ct, ConfigArgs *c);
-Entry * config_build_entry( Operation *op, SlapReply *rs, CfEntryInfo *parent,
+LDAP_SLAPD_F (ConfigTable *) config_find_keyword(ConfigTable *ct, ConfigArgs *c);
+LDAP_SLAPD_F (Entry *) config_build_entry( Operation *op, SlapReply *rs, CfEntryInfo *parent,
        ConfigArgs *c, struct berval *rdn, ConfigOCs *main, ConfigOCs *extra );
 
-Listener *config_check_my_url(const char *url, LDAPURLDesc *lud);
-int config_shadow( ConfigArgs *c, slap_mask_t flag );
+LDAP_SLAPD_F (Listener *) config_check_my_url(const char *url, LDAPURLDesc *lud);
+LDAP_SLAPD_F (int) config_shadow( ConfigArgs *c, slap_mask_t flag );
 #define        config_slurp_shadow(c)  config_shadow((c), SLAP_DBFLAG_SLURP_SHADOW)
 #define        config_sync_shadow(c)   config_shadow((c), SLAP_DBFLAG_SYNC_SHADOW)
 
@@ -231,7 +231,7 @@ int config_shadow( ConfigArgs *c, slap_mask_t flag );
 #define        SLAP_X_ORDERED_FMT      "{%d}"
 
 LDAP_SLAPD_V (slap_verbmasks *) slap_ldap_response_code;
-extern int slap_ldap_response_code_register( struct berval *bv, int err );
+LDAP_SLAPD_F (int) slap_ldap_response_code_register( struct berval *bv, int err );
 
 LDAP_SLAPD_V (ConfigTable) olcDatabaseDummy[];