]> Dogcows Code - chaz/openbox/blobdiff - parser/parse.h
add parsing to libobt with a new API! (it is not completely changed/fixedup yet)
[chaz/openbox] / parser / parse.h
index ac3acba2fed3a0b05e6b83670e0efaad35e5439a..4a8ec9a7ae0f2993cbfd5ab6452a265fb34291d0 100644 (file)
@@ -1,7 +1,7 @@
 /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
 
    parse.h for the Openbox window manager
-   Copyright (c) 2003        Ben Jansens
+   Copyright (c) 2003-2007   Dana Jansens
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -34,10 +34,16 @@ typedef void (*ParseCallback)(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
 ObParseInst* parse_startup();
 void parse_shutdown(ObParseInst *inst);
 
-/* Loads Openbox's rc, from the normal paths */
-gboolean parse_load_rc(xmlDocPtr *doc, xmlNodePtr *root);
+/*! Loads Openbox's rc, from the normal paths
+  @type The configuration type to load, or NULL to use the default.
+        e.g. "gnome" would load rc-gnome.xml.
+ */
+gboolean parse_load_rc(const gchar *type, xmlDocPtr *doc, xmlNodePtr *root);
 /* Loads an Openbox menu, from the normal paths */
 gboolean parse_load_menu(const gchar *file, xmlDocPtr *doc, xmlNodePtr *root);
+/* Loads an Openbox theme, from the normal paths */
+gboolean parse_load_theme(const gchar *name, xmlDocPtr *doc, xmlNodePtr *root,
+                          gchar **path);
 
 void parse_register(ObParseInst *inst, const gchar *tag,
                     ParseCallback func, gpointer data);
This page took 0.02432 seconds and 4 git commands to generate.