summaryrefslogtreecommitdiffstats
path: root/src/include/k5-plugin.h
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>2006-05-04 03:06:33 +0000
committerAlexandra Ellwood <lxs@mit.edu>2006-05-04 03:06:33 +0000
commit3dc32ec784b46bc0163fc4eb7da6001d35dc65c5 (patch)
tree69985d2fecebf17fba18c0af7e04822392cf07c7 /src/include/k5-plugin.h
parent6948c382617723bf68bd4ab455336cf8c8b85e07 (diff)
downloadkrb5-3dc32ec784b46bc0163fc4eb7da6001d35dc65c5.tar.gz
krb5-3dc32ec784b46bc0163fc4eb7da6001d35dc65c5.tar.xz
krb5-3dc32ec784b46bc0163fc4eb7da6001d35dc65c5.zip
Changed to krb5int_open_plugin_dirs/krb5int_close_plugin_dirs which
takes a list of filebases and directories rather than a list of full paths so the caller doesn't have to generate the possibilities themselves. krb5int_open_plugin_dirs will append the possible suffixes for that platform (including no suffix in case there already is one on the file base). Modified the kdb and locate kdc interfaces to use the new API. ticket: 3716 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17975 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/k5-plugin.h')
-rw-r--r--src/include/k5-plugin.h36
1 files changed, 20 insertions, 16 deletions
diff --git a/src/include/k5-plugin.h b/src/include/k5-plugin.h
index c7fb1776ca..5bb9be7a00 100644
--- a/src/include/k5-plugin.h
+++ b/src/include/k5-plugin.h
@@ -72,8 +72,9 @@ struct plugin_dir_handle {
#define PLUGIN_DIR_OPEN(P) ((P)->files != NULL)
long KRB5_CALLCONV
-krb5int_open_plugin (const char *, struct plugin_file_handle **,
- struct errinfo *);
+krb5int_open_plugin (const char *, struct plugin_file_handle **, struct errinfo *);
+void KRB5_CALLCONV
+krb5int_close_plugin (struct plugin_file_handle *);
long KRB5_CALLCONV
krb5int_get_plugin_data (struct plugin_file_handle *, const char *, void **,
@@ -83,18 +84,21 @@ long KRB5_CALLCONV
krb5int_get_plugin_func (struct plugin_file_handle *, const char *,
void (**)(), struct errinfo *);
-void KRB5_CALLCONV
-krb5int_close_plugin (struct plugin_file_handle *);
-long KRB5_CALLCONV krb5int_open_plugin_dir (const char *,
- struct plugin_dir_handle *,
- struct errinfo *);
-void KRB5_CALLCONV krb5int_close_plugin_dir (struct plugin_dir_handle *);
-void KRB5_CALLCONV krb5int_free_plugin_dir_data (void **);
-long KRB5_CALLCONV krb5int_get_plugin_dir_data (struct plugin_dir_handle *,
- const char *, void ***,
- struct errinfo *);
-void KRB5_CALLCONV krb5int_free_plugin_dir_func (void (**)(void));
-long KRB5_CALLCONV krb5int_get_plugin_dir_func (struct plugin_dir_handle *,
- const char *, void (***)(void),
- struct errinfo *);
+long KRB5_CALLCONV
+krb5int_open_plugin_dirs (const char * const *, const char * const *,
+ struct plugin_dir_handle *, struct errinfo *);
+void KRB5_CALLCONV
+krb5int_close_plugin_dirs (struct plugin_dir_handle *);
+
+long KRB5_CALLCONV
+krb5int_get_plugin_dir_data (struct plugin_dir_handle *, const char *,
+ void ***, struct errinfo *);
+void KRB5_CALLCONV
+krb5int_free_plugin_dir_data (void **);
+
+long KRB5_CALLCONV
+krb5int_get_plugin_dir_func (struct plugin_dir_handle *, const char *,
+ void (***)(void), struct errinfo *);
+void KRB5_CALLCONV
+krb5int_free_plugin_dir_func (void (**)(void));