Debian Codegraph @

src/actions/gsm-actions.h

raw symbols SCIP
1 /*
2 * SPDX-License-Identifier: GPL-2.0-or-later
3 */
4
5 #pragma once
6
7 #include <stdint.h>
8 #include <sys/types.h>
9
10 #include <gio/gio.h>
11 #include <gmodule.h>
12
13 G_BEGIN_DECLS
14
15
16 #define GSM_TYPE_ACTIONS (gsm_actions_get_type ())
17 G_MODULE_EXPORT
18 G_DECLARE_FINAL_TYPE (GsmActions, gsm_actions, GSM, ACTIONS, GObject)
19
20 G_MODULE_EXPORT
21 void gsm_actions_kill (GsmActions *self,
22 pid_t pid,
23 int signal,
24 GCancellable *cancellable,
25 GAsyncReadyCallback callback,
26 gpointer callback_data);
27 G_MODULE_EXPORT
28 void gsm_actions_kill_finish (GsmActions *self,
29 GAsyncResult *result,
30 GError **error);
31 G_MODULE_EXPORT
32 void gsm_actions_set_affinity (GsmActions *self,
33 pid_t pid,
34 size_t n_cpus,
35 uint16_t cpus[],
36 gboolean apply_to_threads,
37 GCancellable *cancellable,
38 GAsyncReadyCallback callback,
39 gpointer callback_data);
40 G_MODULE_EXPORT
41 void gsm_actions_set_affinity_finish (GsmActions *self,
42 GAsyncResult *result,
43 GError **error);
44 G_MODULE_EXPORT
45 void gsm_actions_set_priority (GsmActions *self,
46 pid_t pid,
47 int priority,
48 GCancellable *cancellable,
49 GAsyncReadyCallback callback,
50 gpointer callback_data);
51 G_MODULE_EXPORT
52 void gsm_actions_set_priority_finish (GsmActions *self,
53 GAsyncResult *result,
54 GError **error);
55
56 G_END_DECLS