summaryrefslogtreecommitdiff
path: root/psutil/arch/osx/process_info.h
diff options
context:
space:
mode:
authorJay Loden <jloden@gmail.com>2009-02-18 15:10:52 +0000
committerJay Loden <jloden@gmail.com>2009-02-18 15:10:52 +0000
commitcef61c69f1417cdf1571a0f1f62de44d009e3976 (patch)
treef75bc632020612f1280f26122308f8bcdfebed9c /psutil/arch/osx/process_info.h
parent3f0b1250b3881eb8e1a76ac87642b9c0b198d541 (diff)
downloadpsutil-cef61c69f1417cdf1571a0f1f62de44d009e3976.tar.gz
Split C source code files into architecture-specifc directories for all helper
functions used in the main platform implementation module. Also updated setup.py to include new source files.
Diffstat (limited to 'psutil/arch/osx/process_info.h')
-rw-r--r--psutil/arch/osx/process_info.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/psutil/arch/osx/process_info.h b/psutil/arch/osx/process_info.h
new file mode 100644
index 00000000..fe02ed25
--- /dev/null
+++ b/psutil/arch/osx/process_info.h
@@ -0,0 +1,13 @@
+/*
+ * $Id$
+ *
+ * Helper functions related to fetching process information. Used by _psutil_osx
+ * module methods.
+ */
+
+#include <Python.h>
+
+int GetBSDProcessList(kinfo_proc **procList, size_t *procCount);
+int getcmdargs(long pid, PyObject **exec_path, PyObject **arglist, PyObject **envdict);
+PyObject* get_arg_list(long pid);
+