summaryrefslogtreecommitdiffstats
path: root/src/windows/include/loadfuncs-profile.h
blob: ef7f6b7c853ebd81f4ebada012fdbca31a7746fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
#ifndef __LOADFUNCS_PROFILE_H__
#define __LOADFUNCS_PROFILE_H__

#include "loadfuncs.h"
#include <profile.h>

#if defined(_WIN64)
#define PROFILE_DLL      "xpprof64.dll"
#else
#define PROFILE_DLL      "xpprof32.dll"
#endif

TYPEDEF_FUNC(
    long,
    KRB5_CALLCONV,
    profile_init,
    (const_profile_filespec_t *files, profile_t *ret_profile)
    );

TYPEDEF_FUNC(
    long,
    KRB5_CALLCONV,
    profile_init_path,
    (const_profile_filespec_list_t filelist, profile_t *ret_profile)
    );

TYPEDEF_FUNC(
    long,
    KRB5_CALLCONV,
    profile_flush,
    (profile_t profile)
    );

TYPEDEF_FUNC(
    void,
    KRB5_CALLCONV,
    profile_abandon,
    (profile_t profile)
    );

TYPEDEF_FUNC(
    void,
    KRB5_CALLCONV,
    profile_release,
    (profile_t profile)
    );

TYPEDEF_FUNC(
    long,
    KRB5_CALLCONV,
    profile_get_values,
    (profile_t profile, const char **names, char ***ret_values)
    );

TYPEDEF_FUNC(
    void,
    KRB5_CALLCONV,
    profile_free_list,
    (char **list)
    );

TYPEDEF_FUNC(
    long,
    KRB5_CALLCONV,
    profile_get_string,
    (profile_t profile, const char *name, const char *subname,
			const char *subsubname, const char *def_val,
			char **ret_string)
    );

TYPEDEF_FUNC(
    long,
    KRB5_CALLCONV,
    profile_get_integer,
    (profile_t profile, const char *name, const char *subname,
			const char *subsubname, int def_val,
			int *ret_default)
    );

TYPEDEF_FUNC(
    long,
    KRB5_CALLCONV,
    profile_get_relation_names,
    (profile_t profile, const char **names, char ***ret_names)
    );

TYPEDEF_FUNC(
    long,
    KRB5_CALLCONV,
    profile_get_subsection_names,
    (profile_t profile, const char **names, char ***ret_names)
    );

TYPEDEF_FUNC(
    long,
    KRB5_CALLCONV,
    profile_iterator_create,
    (profile_t profile, const char **names, int flags, void **ret_iter)
    );

TYPEDEF_FUNC(
    void,
    KRB5_CALLCONV,
    profile_iterator_free,
    (void **iter_p)
    );

TYPEDEF_FUNC(
    long,
    KRB5_CALLCONV,
    profile_iterator,
    (void **iter_p, char **ret_name, char **ret_value)
    );

TYPEDEF_FUNC(
    void,
    KRB5_CALLCONV,
    profile_release_string,
    (char *str)
    );

TYPEDEF_FUNC(
    long,
    KRB5_CALLCONV,
    profile_update_relation,
    (profile_t profile, const char **names, const char *old_value, const char *new_value)
    );

TYPEDEF_FUNC(
    long,
    KRB5_CALLCONV,
    profile_clear_relation,
    (profile_t profile, const char **names)
    );

TYPEDEF_FUNC(
    long,
    KRB5_CALLCONV,
    profile_rename_section,
    (profile_t profile, const char **names, const char *new_name)
    );

TYPEDEF_FUNC(
    long,
    KRB5_CALLCONV,
    profile_add_relation,
    (profile_t profile, const char **names, const char *new_value)
    );


#endif /* __LOADFUNCS_PROFILE_H__ */