Changeset 2f0141c49bb55157f24738404aa77367a6a45fed for src/rh-config.h
- Timestamp:
- 06/08/09 18:29:43 (3 years ago)
- Children:
- 5987af1b79b0c1fbd4aa9d30a53ec6879853ece3
- Parents:
- 03dc5e370ef4fbf66e34cbe5bc5b878ed764149c
- git-committer:
- Neutron Soutmun <neo.neutron@…> (06/08/09 18:29:43)
- Files:
-
- 1 modified
-
src/rh-config.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/rh-config.h
raace70f r2f0141c 20 20 #define XMLSERVICE_URL "/rahunas_service/xmlrpc_service.php" 21 21 22 #define MAX_IFB_IFACE 64 23 22 24 #define CONFIG_FILE RAHUNAS_CONF_DIR "rahunas.conf" 23 25 #define DEFAULT_PID RAHUNAS_RUN_DIR "rahunasd.pid" 24 26 #define DB_NAME "rahunas" 27 28 struct interfaces { 29 char dev_internal[32]; 30 char dev_ifb[32]; 31 int hit; 32 int init; 33 }; 25 34 26 35 struct rahunas_main_config { … … 40 49 char *dev_external; 41 50 char *dev_internal; 51 struct interfaces *iface; 42 52 char *vlan; 43 53 char *vlan_raw_dev_external; … … 91 101 }; 92 102 103 extern GList *interfaces_list; 104 93 105 int get_config(const char *cfg_file, union rahunas_config *config); 94 106 int get_value(const char *cfg_file, const char *key, void **data, size_t *len); … … 98 110 enum lcfg_status rahunas_visitor(const char *key, void *data, size_t size, 99 111 void *user_data); 112 113 GList *append_interface (GList *inf, 114 const char *inf_name); 115 GList *remove_interface (GList *inf, 116 const char *inf_name); 117 struct interfaces *get_interface (GList *inf, 118 const char *inf_name); 119 int ifb_interface_reserve (void); 120 void ifb_interface_release (int ifno); 100 121 #endif // __RH_CONFIG_H
