From: Richard Basch Date: Tue, 18 Feb 1997 05:49:56 +0000 (+0000) Subject: Export profile_get_values() for krb4 library (win16/win32) X-Git-Tag: krb5-1.1-beta1~1303 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bf5882449ddb42d763d503a72dc3f5386ec483a9;p=krb5.git Export profile_get_values() for krb4 library (win16/win32) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9888 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index 756504db3..298b4cec6 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -1,3 +1,8 @@ +Tue Feb 18 00:14:13 1997 Richard Basch + + * profile.hin prof_int.h prof_init.c: + Export profile_get_values() [krb4 dll requires it] + Sat Feb 15 01:58:19 1997 Richard Basch * Makefile.in (all-windows): Fixed win16/win32 build diff --git a/src/util/profile/prof_init.c b/src/util/profile/prof_init.c index c13417b9d..f69fa0bb7 100644 --- a/src/util/profile/prof_init.c +++ b/src/util/profile/prof_init.c @@ -188,7 +188,8 @@ static errcode_t add_to_list(list, str) * To do more than that means we have to implement some "interesting" * code to do the section searching. */ -errcode_t profile_get_values(profile, names, ret_values) +KRB5_DLLIMP errcode_t KRB5_CALLCONV +profile_get_values(profile, names, ret_values) profile_t profile; const char **names; char ***ret_values; diff --git a/src/util/profile/prof_int.h b/src/util/profile/prof_int.h index 89e7017f1..228c77bad 100644 --- a/src/util/profile/prof_int.h +++ b/src/util/profile/prof_int.h @@ -76,83 +76,83 @@ struct _profile_section_t { typedef struct _profile_section_t *profile_section_t; -extern errcode_t profile_get +errcode_t profile_get PROTOTYPE((const char *filename, prf_file_t *ret_prof)); -extern errcode_t profile_update +errcode_t profile_update PROTOTYPE((prf_file_t profile)); -extern errcode_t profile_parse_file +errcode_t profile_parse_file PROTOTYPE((FILE *f, struct profile_node **root)); /* prof_tree.c */ -extern void profile_free_node +void profile_free_node PROTOTYPE((struct profile_node *relation)); -extern errcode_t profile_create_node +errcode_t profile_create_node PROTOTYPE((const char *name, const char *value, struct profile_node **ret_node)); -extern errcode_t profile_verify_node +errcode_t profile_verify_node PROTOTYPE((struct profile_node *node)); -extern errcode_t profile_add_node +errcode_t profile_add_node PROTOTYPE ((struct profile_node *section, const char *name, const char *value, struct profile_node **ret_node)); -extern errcode_t profile_find_node_relation +errcode_t profile_find_node_relation PROTOTYPE ((struct profile_node *section, const char *name, void **state, char **ret_name, char **value)); -extern errcode_t profile_find_node_subsection +errcode_t profile_find_node_subsection PROTOTYPE ((struct profile_node *section, const char *name, void **state, char **ret_name, struct profile_node **subsection)); -extern errcode_t profile_get_node_parent +errcode_t profile_get_node_parent PROTOTYPE ((struct profile_node *section, struct profile_node **parent)); -extern errcode_t profile_delete_node_relation +errcode_t profile_delete_node_relation PROTOTYPE ((struct profile_node *section, const char *name)); -extern errcode_t profile_find_node_name +errcode_t profile_find_node_name PROTOTYPE ((struct profile_node *section, void **state, char **ret_name)); /* prof_file.c */ -extern errcode_t profile_open_file +errcode_t profile_open_file PROTOTYPE ((const char *filename, prf_file_t *ret_prof)); -extern errcode_t profile_update_file +errcode_t profile_update_file PROTOTYPE ((prf_file_t profile)); -extern errcode_t profile_close_file +errcode_t profile_close_file PROTOTYPE ((prf_file_t profile)); /* prof_init.c */ -extern errcode_t profile_init +errcode_t profile_init PROTOTYPE ((const char **filenames, profile_t *ret_profile)); -extern errcode_t profile_init_path +errcode_t profile_init_path PROTOTYPE ((const char *filepath, profile_t *ret_profile)); -extern void profile_release +void profile_release PROTOTYPE ((profile_t profile)); -extern errcode_t profile_get_values +KRB5_DLLIMP errcode_t KRB5_CALLCONV profile_get_values PROTOTYPE ((profile_t profile, const char **names, char ***ret_values)); -extern errcode_t profile_get_string +errcode_t profile_get_string PROTOTYPE((profile_t profile, const char *name, const char *subname, const char *subsubname, const char *def_val, char **ret_string)); -extern errcode_t profile_get_integer +errcode_t profile_get_integer PROTOTYPE((profile_t profile, const char *name, const char *subname, const char *subsubname, int def_val, int *ret_default)); diff --git a/src/util/profile/profile.hin b/src/util/profile/profile.hin index 039e6d7db..3fbc4f467 100644 --- a/src/util/profile/profile.hin +++ b/src/util/profile/profile.hin @@ -15,22 +15,22 @@ typedef struct _profile_t *profile_t; #endif #endif -extern long profile_init +long profile_init PROTOTYPE ((const char **filenames, profile_t *ret_profile)); -extern long profile_init_path +long profile_init_path PROTOTYPE ((const char *filepath, profile_t *ret_profile)); -extern void profile_release +void profile_release PROTOTYPE ((profile_t profile)); -extern long profile_get_values +KRB5_DLLIMP long KRB5_CALLCONV profile_get_values PROTOTYPE ((profile_t profile, const char **names, char ***ret_values)); -extern long profile_get_string +long profile_get_string PROTOTYPE((profile_t profile, const char *name, const char *subname, const char *subsubname, const char *def_val, char **ret_string)); -extern long profile_get_integer +long profile_get_integer PROTOTYPE((profile_t profile, const char *name, const char *subname, const char *subsubname, int def_val, int *ret_default));