X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=obt%2Fpaths.h;h=7c43682d576c4657a44f7b907e87e99ed24a3cee;hb=d3d96b572a9278cf8f3542b56e583b1744b1110f;hp=b9a095957f219bb33871d2973ac79ea74eaf6b52;hpb=07d5674d3984d008de1ecc768a296afbed731e4e;p=chaz%2Fopenbox diff --git a/obt/paths.h b/obt/paths.h index b9a09595..7c43682d 100644 --- a/obt/paths.h +++ b/obt/paths.h @@ -25,19 +25,26 @@ G_BEGIN_DECLS typedef struct _ObtPaths ObtPaths; -ObtPaths* obt_paths_new(); +ObtPaths* obt_paths_new(void); void obt_paths_ref(ObtPaths *p); void obt_paths_unref(ObtPaths *p); const gchar* obt_paths_config_home(ObtPaths *p); const gchar* obt_paths_data_home(ObtPaths *p); +const gchar* obt_paths_cache_home(ObtPaths *p); GSList* obt_paths_config_dirs(ObtPaths *p); GSList* obt_paths_data_dirs(ObtPaths *p); +GSList* obt_paths_autostart_dirs(ObtPaths *p); gchar *obt_paths_expand_tilde(const gchar *f); gboolean obt_paths_mkdir(const gchar *path, gint mode); gboolean obt_paths_mkdir_path(const gchar *path, gint mode); +/*! Returns TRUE if the @path points to an executable file. + If the @path is not an absolute path, then it is searched for in $PATH. +*/ +gboolean obt_paths_try_exec(ObtPaths *p, const gchar *path); + G_END_DECLS #endif