2 * Copyright (C) 2006 Massachusetts Institute of Technology.
5 * This software is being provided to you, the LICENSEE, by the
6 * Massachusetts Institute of Technology (M.I.T.) under the following
7 * license. By obtaining, using and/or copying this software, you agree
8 * that you have read, understood, and will comply with these terms and
11 * Export of this software from the United States of America may
12 * require a specific license from the United States Government.
13 * It is the responsibility of any person or organization contemplating
14 * export to obtain such a license before exporting.
16 * WITHIN THAT CONSTRAINT, permission to use, copy, modify and distribute
17 * this software and its documentation for any purpose and without fee or
18 * royalty is hereby granted, provided that you agree to comply with the
19 * following copyright notice and statements, including the disclaimer, and
20 * that the same appear on ALL copies of the software and documentation,
21 * including modifications that you make for internal use or for
24 * THIS SOFTWARE IS PROVIDED "AS IS", AND M.I.T. MAKES NO REPRESENTATIONS
25 * OR WARRANTIES, EXPRESS OR IMPLIED. By way of example, but not
26 * limitation, M.I.T. MAKES NO REPRESENTATIONS OR WARRANTIES OF
27 * MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF
28 * THE LICENSED SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY
29 * PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
31 * The name of the Massachusetts Institute of Technology or M.I.T. may NOT
32 * be used in advertising or publicity pertaining to distribution of the
33 * software. Title to copyright in this software and any associated
34 * documentation shall at all times remain with M.I.T., and USER agrees to
37 * Furthermore if you modify this software you must label
38 * your software as modified software and not distribute it in such a
39 * fashion that it might be confused with the original M.I.T. software.
42 /* Just those definitions which are needed by util/support/plugins.c,
43 which gets compiled before util/et is built, which happens before
44 we can construct krb5.h, which is included by k5-int.h.
51 #pragma ident "%Z%%M% %I% %E% SMI"
53 #if defined(_MSDOS) || defined(_WIN32)
59 #define KRB5_CALLCONV_C
64 #elif defined(HAVE_INTTYPES_H)
65 # include <inttypes.h>
70 struct plugin_file_handle
; /* opaque */
72 struct plugin_dir_handle
{
73 /* This points to a NULL-terminated list of pointers to plugin_file_handle structs */
74 struct plugin_file_handle
**files
;
76 #define PLUGIN_DIR_INIT(P) ((P)->files = NULL)
77 #define PLUGIN_DIR_OPEN(P) ((P)->files != NULL)
80 krb5int_open_plugin (const char *, struct plugin_file_handle
**, struct errinfo
*);
82 krb5int_close_plugin (struct plugin_file_handle
*);
85 krb5int_get_plugin_data (struct plugin_file_handle
*, const char *, void **,
89 krb5int_get_plugin_func (struct plugin_file_handle
*, const char *,
90 void (**)(), struct errinfo
*);
94 krb5int_open_plugin_dirs (const char * const *, const char * const *,
95 struct plugin_dir_handle
*, struct errinfo
*);
97 krb5int_close_plugin_dirs (struct plugin_dir_handle
*);
100 krb5int_get_plugin_dir_data (struct plugin_dir_handle
*, const char *,
101 void ***, struct errinfo
*);
103 krb5int_free_plugin_dir_data (void **);
106 krb5int_get_plugin_dir_func (struct plugin_dir_handle
*, const char *,
107 void (***)(void), struct errinfo
*);
109 krb5int_free_plugin_dir_func (void (**)(void));
111 #endif /* _K5_PLUGIN_H_ */