aboutsummaryrefslogtreecommitdiff
path: root/src/librc/rc.h.in
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2011-01-17 06:32:46 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2011-01-17 06:32:46 +0000
commit0e90ae266af658c2a8e405c1ce81819e8437ade9 (patch)
tree2d812a7da8386eb2fd374a8f1a3eb5101a274950 /src/librc/rc.h.in
parentb113ad49e9bf99e78bac9b6529c22355c62cea94 (diff)
Factor out new function rc_deptree_load_file to aid in debugging deptree files from users. Loads from a given filename instead of the hardcoded RC_DEPTREE_CACHE define.
Diffstat (limited to 'src/librc/rc.h.in')
-rw-r--r--src/librc/rc.h.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/librc/rc.h.in b/src/librc/rc.h.in
index 3d0ffb42..7ed8f226 100644
--- a/src/librc/rc.h.in
+++ b/src/librc/rc.h.in
@@ -375,6 +375,11 @@ bool rc_deptree_update_needed(time_t *, char *);
* @return pointer to the dependency tree */
RC_DEPTREE *rc_deptree_load(void);
+/*! Load a cached dependency tree from the specified file and return a pointer
+ * to it. This pointer should be freed with rc_deptree_free when done.
+ * @return pointer to the dependency tree */
+RC_DEPTREE *rc_deptree_load_file(const char *);
+
/*! List the depend for the type of service
* @param deptree to search
* @param type to use (keywords, etc)