--- /dev/null
+/*
+ * 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.
+ */
+
+#include "service.h"
+
+int system_service_init(pid_t pid, char *name, struct system_service *s)
+{
+
+ /* TODO: Get real pid if < 0 */
+ s->pid = pid;
+
+ /* TODO: Get real service name if NULL */
+ s->name = name;
+}
+
+void system_service_cleanup(struct system_service *s)
+{
+ if (s)
+ free(s->name);
+}
--- /dev/null
+/*
+ * 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_SERVICE_H
+#define FAULTD_SERVICE_H
+
+#include <sys/types.h>
+#include <unistd.h>
+
+struct system_service {
+ pid_t pid;
+ char *name;
+};
+
+int system_service_init(pid_t pid, char *name, struct system_service *s);
+
+void system_service_cleanup(struct system_service *s);
+
+#endif /* FAULTD_SERVICE_H */