mmenu can now load .desktops (better at libpnd generated ones)
[pandora-libraries.git] / include / pnd_conf.h
index 8779f17..04bc063 100644 (file)
@@ -50,7 +50,7 @@ extern "C" {
  * 'conf' config, and then use its suggested searchpath!
  *
  */
-#define PND_CONF_SEARCHPATH "/media/mmcblk0p1/pandora/conf:/media/mmcblk1p1/pandora/conf:/etc/pandora/conf:./testdata/conf"
+#define PND_CONF_SEARCHPATH "/media/*/pandora/conf:/etc/pandora/conf:./testdata/conf"
 
 /* within the base conf file 'conf', the key for the searchpath is 'conf.searchpath' */
 #define PND_CONF_FILE       "conf" /* a config file for config settings! */
@@ -123,6 +123,13 @@ pnd_conf_handle pnd_conf_fetch_by_path ( char *fullpath );
 char *pnd_conf_get_as_char ( pnd_conf_handle c, char *key );
 #define PND_CONF_BADNUM (-31337) /* really lame hack, I know */
 int pnd_conf_get_as_int ( pnd_conf_handle c, char *key );
+int pnd_conf_get_as_int_d ( pnd_conf_handle c, char *key, int def ); // same as _as_int, but returns default instead of BADNUM
+
+/* writes and saves
+ */
+int *pnd_conf_set_int ( pnd_conf_handle c, char *key, int v );
+char *pnd_conf_set_char ( pnd_conf_handle c, char *key, char *v );
+unsigned char pnd_conf_write ( pnd_conf_handle c, char *fullpath );
 
 #ifdef __cplusplus
 } /* "C" */