1/*
2 * This file is auto generated.  Please do not edit it.
3 */
4
5#ifndef __KERBEROSPROFILE__
6#define __KERBEROSPROFILE__
7
8/*
9 * profile.h
10 */
11
12#ifndef _KRB5_PROFILE_H
13#define _KRB5_PROFILE_H
14
15#if defined(_WIN32)
16#include <win-mac.h>
17#endif
18
19#if defined(__MACH__) && defined(__APPLE__)
20#    include <TargetConditionals.h>
21#    if TARGET_RT_MAC_CFM
22#        error "Use KfM 4.0 SDK headers for CFM compilation."
23#    endif
24#endif
25
26#ifndef KRB5_CALLCONV
27#define KRB5_CALLCONV
28#define KRB5_CALLCONV_C
29#endif
30
31typedef struct _profile_t *profile_t;
32
33/*
34 * Used by the profile iterator in prof_get.c
35 */
36#define PROFILE_ITER_LIST_SECTION	0x0001
37#define PROFILE_ITER_SECTIONS_ONLY	0x0002
38#define PROFILE_ITER_RELATIONS_ONLY	0x0004
39
40#ifdef __cplusplus
41extern "C" {
42#endif /* __cplusplus */
43
44typedef char* profile_filespec_t;	/* path as C string */
45typedef char* profile_filespec_list_t;	/* list of : separated paths, C string */
46typedef const char * const_profile_filespec_t;	/* path as C string */
47typedef const char * const_profile_filespec_list_t;	/* list of : separated paths, C string */
48
49long KRB5_CALLCONV profile_init
50	(const_profile_filespec_t *files, profile_t *ret_profile);
51
52long KRB5_CALLCONV profile_init_path
53	(const_profile_filespec_list_t filelist, profile_t *ret_profile);
54
55void KRB5_CALLCONV profile_configuration_updated
56	(void);
57
58long KRB5_CALLCONV profile_flush
59	(profile_t profile);
60long KRB5_CALLCONV profile_flush_to_file
61	(profile_t profile, const_profile_filespec_t outfile);
62long KRB5_CALLCONV profile_flush_to_buffer
63	(profile_t profile, char **bufp);
64void KRB5_CALLCONV profile_free_buffer
65	(profile_t profile, char *buf);
66
67long KRB5_CALLCONV profile_is_writable
68	(profile_t profile, int *writable);
69long KRB5_CALLCONV profile_is_modified
70	(profile_t profile, int *modified);
71
72void KRB5_CALLCONV profile_abandon
73	(profile_t profile);
74
75void KRB5_CALLCONV profile_release
76	(profile_t profile);
77
78long KRB5_CALLCONV profile_get_values
79	(profile_t profile, const char *const *names, char ***ret_values);
80
81void KRB5_CALLCONV profile_free_list
82	(char **list);
83
84long KRB5_CALLCONV profile_get_string
85	(profile_t profile, const char *name, const char *subname,
86			const char *subsubname, const char *def_val,
87			char **ret_string);
88long KRB5_CALLCONV profile_get_integer
89	(profile_t profile, const char *name, const char *subname,
90			const char *subsubname, int def_val,
91			int *ret_default);
92
93long KRB5_CALLCONV profile_get_boolean
94	(profile_t profile, const char *name, const char *subname,
95			const char *subsubname, int def_val,
96			int *ret_default);
97
98long KRB5_CALLCONV profile_get_relation_names
99	(profile_t profile, const char **names, char ***ret_names);
100
101long KRB5_CALLCONV profile_get_subsection_names
102	(profile_t profile, const char **names, char ***ret_names);
103
104long KRB5_CALLCONV profile_iterator_create
105	(profile_t profile, const char *const *names,
106		   int flags, void **ret_iter);
107
108void KRB5_CALLCONV profile_iterator_free
109	(void **iter_p);
110
111long KRB5_CALLCONV profile_iterator
112	(void	**iter_p, char **ret_name, char **ret_value);
113
114void KRB5_CALLCONV profile_release_string (char *str);
115
116long KRB5_CALLCONV profile_update_relation
117	(profile_t profile, const char **names,
118		   const char *old_value, const char *new_value);
119
120long KRB5_CALLCONV profile_clear_relation
121	(profile_t profile, const char **names);
122
123long KRB5_CALLCONV profile_rename_section
124	(profile_t profile, const char **names,
125		   const char *new_name);
126
127long KRB5_CALLCONV profile_add_relation
128	(profile_t profile, const char **names,
129		   const char *new_value);
130
131#ifdef __cplusplus
132}
133#endif /* __cplusplus */
134
135#endif /* _KRB5_PROFILE_H */
136/*
137 * et-h-prof_err.h:
138 * This file is automatically generated; please do not edit it.
139 */
140
141#include <com_err.h>
142
143#define PROF_VERSION                             (-1429577728L)
144#define PROF_MAGIC_NODE                          (-1429577727L)
145#define PROF_NO_SECTION                          (-1429577726L)
146#define PROF_NO_RELATION                         (-1429577725L)
147#define PROF_ADD_NOT_SECTION                     (-1429577724L)
148#define PROF_SECTION_WITH_VALUE                  (-1429577723L)
149#define PROF_BAD_LINK_LIST                       (-1429577722L)
150#define PROF_BAD_GROUP_LVL                       (-1429577721L)
151#define PROF_BAD_PARENT_PTR                      (-1429577720L)
152#define PROF_MAGIC_ITERATOR                      (-1429577719L)
153#define PROF_SET_SECTION_VALUE                   (-1429577718L)
154#define PROF_EINVAL                              (-1429577717L)
155#define PROF_READ_ONLY                           (-1429577716L)
156#define PROF_SECTION_NOTOP                       (-1429577715L)
157#define PROF_SECTION_SYNTAX                      (-1429577714L)
158#define PROF_RELATION_SYNTAX                     (-1429577713L)
159#define PROF_EXTRA_CBRACE                        (-1429577712L)
160#define PROF_MISSING_OBRACE                      (-1429577711L)
161#define PROF_MAGIC_PROFILE                       (-1429577710L)
162#define PROF_MAGIC_SECTION                       (-1429577709L)
163#define PROF_TOPSECTION_ITER_NOSUPP              (-1429577708L)
164#define PROF_INVALID_SECTION                     (-1429577707L)
165#define PROF_END_OF_SECTIONS                     (-1429577706L)
166#define PROF_BAD_NAMESET                         (-1429577705L)
167#define PROF_NO_PROFILE                          (-1429577704L)
168#define PROF_MAGIC_FILE                          (-1429577703L)
169#define PROF_FAIL_OPEN                           (-1429577702L)
170#define PROF_EXISTS                              (-1429577701L)
171#define PROF_BAD_BOOLEAN                         (-1429577700L)
172#define PROF_BAD_INTEGER                         (-1429577699L)
173#define PROF_MAGIC_FILE_DATA                     (-1429577698L)
174#define ERROR_TABLE_BASE_prof (-1429577728L)
175
176extern const struct error_table et_prof_error_table;
177
178#if !defined(_WIN32)
179/* for compatibility with older versions... */
180extern void initialize_prof_error_table (void) /*@modifies internalState@*/;
181#else
182#define initialize_prof_error_table()
183#endif
184
185#if !defined(_WIN32)
186#define init_prof_err_tbl initialize_prof_error_table
187#define prof_err_base ERROR_TABLE_BASE_prof
188#endif
189
190#endif /* __KERBEROSPROFILE__ */
191