diff dep/animia/include/linux.h @ 56:6ff7aabeb9d7

deps: add animia for open files detection
author Paper <mrpapersonic@gmail.com>
date Thu, 28 Sep 2023 12:35:21 -0400
parents
children eab9e623eb84
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dep/animia/include/linux.h	Thu Sep 28 12:35:21 2023 -0400
@@ -0,0 +1,16 @@
+#ifndef __animia__linux_h
+#define __animia__linux_h
+#include <vector>
+#include <string>
+#include <unordered_map>
+
+namespace Animia::Linux {
+
+std::vector<int> get_all_pids();
+std::string get_process_name(int pid);
+std::vector<std::string> get_open_files(int pid);
+std::unordered_map<int, std::vector<std::string>> get_all_open_files();
+
+}
+
+#endif // __animia__linux_h