summaryrefslogtreecommitdiff
path: root/src/procman_matesu.cpp
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-11-08 16:22:08 -0300
committerPerberos <[email protected]>2011-11-08 16:22:08 -0300
commitf45852ab2a7126f354079499fc8b03976c0eab27 (patch)
tree885c32d804d3c970c5da41a5527882e8a956b42d /src/procman_matesu.cpp
downloadmate-system-monitor-f45852ab2a7126f354079499fc8b03976c0eab27.tar.bz2
mate-system-monitor-f45852ab2a7126f354079499fc8b03976c0eab27.tar.xz
initial
Diffstat (limited to 'src/procman_matesu.cpp')
-rw-r--r--src/procman_matesu.cpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/procman_matesu.cpp b/src/procman_matesu.cpp
new file mode 100644
index 0000000..5bf6c59
--- /dev/null
+++ b/src/procman_matesu.cpp
@@ -0,0 +1,40 @@
+#include <config.h>
+
+#include <glib.h>
+
+#include "procman.h"
+#include "procman_matesu.h"
+#include "util.h"
+
+gboolean (*matesu_exec)(const char *commandline);
+
+
+static void
+load_matesu(void)
+{
+ static gboolean init;
+
+ if (init)
+ return;
+
+ init = TRUE;
+
+ load_symbols("libmatesu.so.0",
+ "matesu_exec", &matesu_exec,
+ NULL);
+}
+
+
+gboolean
+procman_matesu_create_root_password_dialog(const char *command)
+{
+ return matesu_exec(command);
+}
+
+
+gboolean
+procman_has_matesu(void)
+{
+ load_matesu();
+ return matesu_exec != NULL;
+}