cf_query.c File Reference

Go to the source code of this file.

Defines

#define get_lua_value(name, L, err)   get_lua_value_wd(name,NULL,L,err)

Functions

static gboolean eval_lua_str (const gchar *luaStr, lua_State **pL, GError **error)
static gboolean get_lua_value_wd (const gchar *name, const gchar *defStr, lua_State **pL, GError **error)
static gboolean get_int_from_lua (lua_State *L, int *value, GError **error)
gboolean try_get_ConfigDb_int (const gchar *name, int *value, gboolean *found, GError **error)
gboolean get_ConfigDb_int (const gchar *name, int *value, int default_value, GError **error)
int force_get_ConfigDb_int (const gchar *name, int default_value)
int force_lua_eval_int (const gchar *luaStr, int default_value)
static gboolean get_bool_from_lua (lua_State *L, gboolean *value, GError **error)
gboolean try_get_ConfigDb_bool (const gchar *name, gboolean *value, gboolean *found, GError **error)
gboolean get_ConfigDb_bool (const gchar *name, gboolean *value, gboolean default_value, GError **error)
gboolean force_get_ConfigDb_bool (const gchar *name, gboolean default_value)
gboolean force_lua_eval_bool (const gchar *luaStr, gboolean default_value)
gboolean try_get_ConfigDb_str (const gchar *name, gchar **s, GError **error)
gboolean get_ConfigDb_str (const gchar *name, gchar **s, const gchar *default_s, GError **error)
int get_config_iap_id ()
const gchar * get_config_username ()

Define Documentation

#define get_lua_value ( name,
L,
err   )     get_lua_value_wd(name,NULL,L,err)

Definition at line 81 of file cf_query.c.

Referenced by try_get_ConfigDb_bool(), try_get_ConfigDb_int(), and try_get_ConfigDb_str().


Function Documentation

static gboolean eval_lua_str ( const gchar *  luaStr,
lua_State **  pL,
GError **  error 
) [static]
gboolean force_get_ConfigDb_bool ( const gchar *  name,
gboolean  default_value 
)

Definition at line 198 of file cf_query.c.

References try_get_ConfigDb_bool().

Referenced by _rk_Remokon::_rk_Remokon(), and sensor_autostart_is_allowed().

int force_get_ConfigDb_int ( const gchar *  name,
int  default_value 
)

Definition at line 131 of file cf_query.c.

References try_get_ConfigDb_int().

Referenced by CSensor_cellpos::ReadConfig().

gboolean force_lua_eval_bool ( const gchar *  luaStr,
gboolean  default_value 
)

Definition at line 205 of file cf_query.c.

References eval_lua_str(), get_bool_from_lua(), and lua_close().

Referenced by rk_Remokon_reconfigure().

int force_lua_eval_int ( const gchar *  luaStr,
int  default_value 
)

Definition at line 138 of file cf_query.c.

References eval_lua_str(), get_int_from_lua(), and lua_close().

Referenced by rk_Remokon_reconfigure().

static gboolean get_bool_from_lua ( lua_State L,
gboolean *  value,
GError **  error 
) [static]
int get_config_iap_id (  ) 
const gchar* get_config_username (  ) 

Definition at line 280 of file cf_query.c.

References ac_STATIC_GET.

Referenced by CUploader::CreatePosterAoL(), and CFileDataSupplier::OpenL().

gboolean get_ConfigDb_bool ( const gchar *  name,
gboolean *  value,
gboolean  default_value,
GError **  error 
)

Definition at line 187 of file cf_query.c.

References try_get_ConfigDb_bool().

gboolean get_ConfigDb_int ( const gchar *  name,
int *  value,
int  default_value,
GError **  error 
)

Definition at line 120 of file cf_query.c.

References try_get_ConfigDb_int().

gboolean get_ConfigDb_str ( const gchar *  name,
gchar **  s,
const gchar *  default_s,
GError **  error 
)

Definition at line 253 of file cf_query.c.

References gx_error_no_memory, and try_get_ConfigDb_str().

Referenced by CUploader::RefreshSnapshotTimeExpr().

static gboolean get_int_from_lua ( lua_State L,
int *  value,
GError **  error 
) [static]
static gboolean get_lua_value_wd ( const gchar *  name,
const gchar *  defStr,
lua_State **  pL,
GError **  error 
) [static]
gboolean try_get_ConfigDb_bool ( const gchar *  name,
gboolean *  value,
gboolean *  found,
GError **  error 
)

Definition at line 169 of file cf_query.c.

References get_bool_from_lua(), get_lua_value, and lua_close().

Referenced by force_get_ConfigDb_bool(), and get_ConfigDb_bool().

gboolean try_get_ConfigDb_int ( const gchar *  name,
int *  value,
gboolean *  found,
GError **  error 
)
gboolean try_get_ConfigDb_str ( const gchar *  name,
gchar **  s,
GError **  error 
)

ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:58 2011 by Doxygen 1.6.1