Mercurial > minori
annotate dep/animia/include/animia/fd/linux.h @ 152:8700806c2cc2
dep/animia: awesome new breaking changes!
I'm so tired
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 15 Nov 2023 02:34:59 -0500 |
parents | ffa535b6d630 |
children | cdf79282d647 |
rev | line source |
---|---|
138
28842a8d0c6b
dep/animia: huge refactor (again...)
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
1 #ifndef __animia__animia__fd__linux_h |
28842a8d0c6b
dep/animia: huge refactor (again...)
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
2 #define __animia__animia__fd__linux_h |
28842a8d0c6b
dep/animia: huge refactor (again...)
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
3 |
28842a8d0c6b
dep/animia: huge refactor (again...)
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
4 #include <string> |
28842a8d0c6b
dep/animia: huge refactor (again...)
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
5 #include <set> |
28842a8d0c6b
dep/animia: huge refactor (again...)
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
6 |
139
478f3b366199
dep/animia: separate lots of things, use base class for OS stuff
Paper <mrpapersonic@gmail.com>
parents:
138
diff
changeset
|
7 #include "animia/types.h" |
478f3b366199
dep/animia: separate lots of things, use base class for OS stuff
Paper <mrpapersonic@gmail.com>
parents:
138
diff
changeset
|
8 #include "animia/fd.h" |
138
28842a8d0c6b
dep/animia: huge refactor (again...)
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
9 |
141
14626691d0e1
linux: stop the preprocessor from mangling our definitions
Paper <mrpapersonic@gmail.com>
parents:
139
diff
changeset
|
10 /* Russian warship, go fuck yourself */ |
14626691d0e1
linux: stop the preprocessor from mangling our definitions
Paper <mrpapersonic@gmail.com>
parents:
139
diff
changeset
|
11 #ifdef linux |
14626691d0e1
linux: stop the preprocessor from mangling our definitions
Paper <mrpapersonic@gmail.com>
parents:
139
diff
changeset
|
12 #undef linux |
14626691d0e1
linux: stop the preprocessor from mangling our definitions
Paper <mrpapersonic@gmail.com>
parents:
139
diff
changeset
|
13 #endif |
14626691d0e1
linux: stop the preprocessor from mangling our definitions
Paper <mrpapersonic@gmail.com>
parents:
139
diff
changeset
|
14 |
138
28842a8d0c6b
dep/animia: huge refactor (again...)
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
15 namespace animia::internal::linux { |
28842a8d0c6b
dep/animia: huge refactor (again...)
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
16 |
139
478f3b366199
dep/animia: separate lots of things, use base class for OS stuff
Paper <mrpapersonic@gmail.com>
parents:
138
diff
changeset
|
17 class LinuxFdTools final : public BaseFdTools { |
478f3b366199
dep/animia: separate lots of things, use base class for OS stuff
Paper <mrpapersonic@gmail.com>
parents:
138
diff
changeset
|
18 public: |
152
8700806c2cc2
dep/animia: awesome new breaking changes!
Paper <mrpapersonic@gmail.com>
parents:
150
diff
changeset
|
19 bool EnumerateOpenProcesses(process_proc_t process_proc) override; |
8700806c2cc2
dep/animia: awesome new breaking changes!
Paper <mrpapersonic@gmail.com>
parents:
150
diff
changeset
|
20 bool EnumerateOpenFiles(const std::set<pid_t>& pids, open_file_proc_t open_file_proc) override; |
139
478f3b366199
dep/animia: separate lots of things, use base class for OS stuff
Paper <mrpapersonic@gmail.com>
parents:
138
diff
changeset
|
21 }; |
138
28842a8d0c6b
dep/animia: huge refactor (again...)
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
22 |
28842a8d0c6b
dep/animia: huge refactor (again...)
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
23 } |
28842a8d0c6b
dep/animia: huge refactor (again...)
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
24 |
141
14626691d0e1
linux: stop the preprocessor from mangling our definitions
Paper <mrpapersonic@gmail.com>
parents:
139
diff
changeset
|
25 #endif // __animia__animia__fd__linux_h |