elua lib: add a way to retrieve the progname
This commit is contained in:
parent
13bd7ba653
commit
e806ae6f5c
|
@ -78,6 +78,8 @@ EAPI Eina_Stringshare *elua_state_core_dir_get(const Elua_State *es);
|
|||
EAPI Eina_Stringshare *elua_state_mod_dir_get(const Elua_State *es);
|
||||
EAPI Eina_Stringshare *elua_state_apps_dir_get(const Elua_State *es);
|
||||
|
||||
EAPI Eina_Stringshare *elua_state_prog_name_get(const Elua_State *es);
|
||||
|
||||
EAPI void elua_state_include_path_add(Elua_State *es, const char *path);
|
||||
|
||||
EAPI Eina_Bool elua_state_require_ref_push(Elua_State *es);
|
||||
|
|
|
@ -172,6 +172,13 @@ elua_state_apps_dir_get(const Elua_State *es)
|
|||
return es->moddir;
|
||||
}
|
||||
|
||||
EAPI Eina_Stringshare *
|
||||
elua_state_prog_name_get(const Elua_State *es)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(es, NULL);
|
||||
return es->progname;
|
||||
}
|
||||
|
||||
EAPI void
|
||||
elua_state_include_path_add(Elua_State *es, const char *path)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue