Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
opt.h
Go to the documentation of this file.
1 /*
2  * File: opt.h
3  * Author: Kirill Scherba
4  *
5  * Created on June 6, 2014, 5:39 PM
6  */
7 
8 #ifndef OPT_H
9 #define OPT_H
10 
11 //#include "ev_mgr.h"
12 #include "conf.h"
13 
14 #define SHOW_PEER_CONTINUOSLY 2
15 
17 
23 };
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 char ** ksnet_optRead(int argc, char **argv, teonet_cfg *conf,
30  int app_argc, char** app_argv, char **app_argv_descr, int show_opt);
31 
32 void ksnet_optSetApp(teonet_cfg *conf,
33  const char* app_name,
34  const char* app_prompt,
35  const char* app_description);
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif /* OPT_H */
42 
Definition: opt.h:18
Definition: opt.h:19
Definition: conf.h:51
Definition: opt.h:22
void ksnet_optSetApp(teonet_cfg *conf, const char *app_name, const char *app_prompt, const char *app_description)
Set application name.
Definition: opt.c:470
Definition: opt.h:20
char ** ksnet_optRead(int argc, char **argv, teonet_cfg *conf, int app_argc, char **app_argv, char **app_argv_descr, int show_opt)
Read configuration and command line options.
Definition: opt.c:46
Definition: opt.h:21
ksnetEvMgrOpts
Definition: opt.h:16