summaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorKarel Klic <kklic@redhat.com>2009-12-18 17:03:20 +0100
committerKarel Klic <kklic@redhat.com>2009-12-18 17:03:20 +0100
commitf0fe841b0f257ee288b6b88a32597a6282952d34 (patch)
tree670291040ef3821137ecc505bf1d23d623824e56 /inc
parentc1766c339b99aa157c589a7e661b2fe3bd04501d (diff)
downloadabrt-f0fe841b0f257ee288b6b88a32597a6282952d34.tar.gz
abrt-f0fe841b0f257ee288b6b88a32597a6282952d34.tar.xz
abrt-f0fe841b0f257ee288b6b88a32597a6282952d34.zip
moved get_cmdline() and daemon_is_ok() to abrtlib
Diffstat (limited to 'inc')
-rw-r--r--inc/abrtlib.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/inc/abrtlib.h b/inc/abrtlib.h
index c5ca60f7..28140d80 100644
--- a/inc/abrtlib.h
+++ b/inc/abrtlib.h
@@ -210,6 +210,16 @@ char* xmalloc_sockaddr2dotted_noport(const struct sockaddr *sa);
/* Random utility functions */
uid_t getuidbyname(const char* login);
+/* Returns command line of running program.
+ * Caller is responsible to free() the returned value.
+ * If the pid is not valid or command line can not be obtained,
+ * empty string is returned.
+ */
+char* get_cmdline(pid_t pid);
+
+/* Returns 1 if abrtd daemon is running, 0 otherwise. */
+int daemon_is_ok();
+
/* Returns malloc'ed block */
char *encode_base64(const void *src, int length);
bool dot_or_dotdot(const char *filename);