]> Dogcows Code - chaz/openbox/blobdiff - obt/paths.h
stat() can give an error, handle that
[chaz/openbox] / obt / paths.h
index a6e32ae1bc0737296653eca217763fe58d8fabb5..7c43682d576c4657a44f7b907e87e99ed24a3cee 100644 (file)
@@ -25,7 +25,7 @@ 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);
 
@@ -34,11 +34,17 @@ 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
This page took 0.021789 seconds and 4 git commands to generate.