source: libabac/options.h @ b1bd0ff

0.1.7
Last change on this file since b1bd0ff was 91a6b20, checked in by Mei-Hui Su <mei@…>, 11 years ago

1) add cleanup for options(leak)

  • Property mode set to 100644
File size: 355 bytes
Line 
1#ifndef __OPTIONS_H__
2#define __OPTIONS_H__
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8typedef struct _options_t {
9    char *keystore;
10    char *role;
11    char *principal;
12    char *rulefile;
13} options_t;
14
15void get_options(int argc, char **argv, options_t *opts);
16void free_options(options_t *opts);
17
18#ifdef __cplusplus
19}
20#endif
21
22#endif /* __OPTIONS_H__ */
Note: See TracBrowser for help on using the repository browser.