~libbls/libbls/bench-vs-plain

« back to all changes in this revision

Viewing changes to src/options.h

  • Committer: alf82 at freemail
  • Date: 2009-03-21 11:09:31 UTC
  • mfrom: (33.1.8 options-impl)
  • Revision ID: alf82@freemail.gr-20090321110931-6s65h81h3ue3pnmr
Merged buffer options implementation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * @file options.h
 
3
 *
 
4
 * Options
 
5
 */
 
6
#ifndef _OPTIONS_H
 
7
#define _OPTIONS_H
 
8
 
 
9
#include <sys/types.h>
 
10
 
 
11
/**
 
12
 * @defgroup options Options
 
13
 *
 
14
 *
 
15
 * @{
 
16
 */
 
17
 
 
18
/**
 
19
 * Opaque type for options ADT.
 
20
 */
 
21
typedef struct options options_t;
 
22
 
 
23
int options_new(options_t **opts, size_t nopts);
 
24
 
 
25
int options_get_option(options_t *opts, char **val, size_t key);
 
26
 
 
27
int options_set_option(options_t *opts, size_t key, char *val);
 
28
 
 
29
int options_free(options_t *opts);
 
30
 
 
31
/** @} */
 
32
 
 
33
#endif /* _OPTIONS_H */
 
34