summaryrefslogtreecommitdiffstats
path: root/ksysv/leveldb.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit37333bf25ad9a4c538250f5af2f9f1d666362883 (patch)
treec45e8df5b9efbffe07eb3d9340df7811c7e16943 /ksysv/leveldb.h
downloadtdeadmin-37333bf25ad9a4c538250f5af2f9f1d666362883.tar.gz
tdeadmin-37333bf25ad9a4c538250f5af2f9f1d666362883.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksysv/leveldb.h')
-rw-r--r--ksysv/leveldb.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/ksysv/leveldb.h b/ksysv/leveldb.h
new file mode 100644
index 0000000..e18d202
--- /dev/null
+++ b/ksysv/leveldb.h
@@ -0,0 +1,50 @@
+/***************************************************************************
+ begin : Sun Oct 3 1999
+ copyright : (C) 1999 by Red Hat Software
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * 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 *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+/* modifications (c) 1999 Peter Putzer */
+
+#ifndef H_LEVELDB
+#define H_LEVELDB
+
+
+#ifdef __cplusplus
+
+extern "C" {
+#endif
+
+#include <glob.h>
+
+struct service {
+ char * name;
+ int levels, kPriority, sPriority;
+ char * desc;
+};
+
+int parseLevels(const char * str, int emptyOk);
+
+/* returns 0 on success, 1 if the service is not chkconfig-able, -1 if an
+ I/O error occurs (in which case errno can be checked) */
+int readServiceInfo(const char* RUNLEVELS, const char* name, struct service * service);
+int currentRunlevel(void);
+int isOn(const char* RUNLEVELS, const char* name, int where);
+int isConfigured(const char* RUNLEVELS, const char* name, int level);
+int doSetService(const char* RUNLEVELS, struct service s, int level, int on);
+int findServiceEntries(const char* RUNLEVELS, const char* name, int level, glob_t * globresptr);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif