Add IDs of predefined faultd actions
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 9 May 2017 09:25:25 +0000 (11:25 +0200)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 9 May 2017 11:49:16 +0000 (13:49 +0200)
Action which can be executed when event arrived is identified
by a string in reverse domain name convention.

faultd will provide implementation of 4 predefined actions.
All other actions can be provided by a plugin mechanism
(to be implemented later)

Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
src/core/action.h [new file with mode: 0644]

diff --git a/src/core/action.h b/src/core/action.h
new file mode 100644 (file)
index 0000000..c5f0ed0
--- /dev/null
@@ -0,0 +1,27 @@
+/*
+ * faultd
+ *
+ * Copyright © 2017 Samsung Electronics
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef FAULTD_ACTION_H
+#define FAULTD_ACTION_H
+
+#define FAULTD_ACTION_SERVICE_RESTART_ID "org.tizen.faultd.action.SERVICE_RESTART"
+#define FAULTD_ACTION_SERVICE_RECOVER_ID "org.tizen.faultd.action.SERVICE_RECOVER"
+#define FAULTD_ACTION_REBOOT_ID "org.tizen.faultd.action.REBOOT"
+#define FAULTD_ACTION_RECOVERY_REBOOT_ID "org.tizen.faultd.action.RECOVERY_REBOOT"
+
+#endif /* FAULTD_ACTION_H */