Fork Vasum on GitHub Official Vasum Wiki on Tizen.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
api.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License version 2.1 as published by the Free Software Foundation.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public
14  * License along with this library; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16  */
17 
25 #ifndef LXCPP_GUARD_API_HPP
26 #define LXCPP_GUARD_API_HPP
27 
28 #include "cargo-ipc/types.hpp"
29 
30 #include "cargo/fields.hpp"
31 
32 #include <string>
33 #include <vector>
34 
35 namespace lxcpp {
36 namespace api {
37 
44 
45 struct Void {
47 };
48 
49 struct Int {
50  int value;
51 
52  Int(int v = -1): value(v) {}
53 
55  (
56  value
57  )
58 };
59 
60 typedef Int Pid;
61 typedef Int ExitStatus;
62 
63 } // namespace api
64 } // namespace lxcpp
65 
66 #endif // LXCPP_GUARD_API_HPP
Definition: api.hpp:45
#define CARGO_REGISTER_EMPTY
Register empty cargo class.
Definition: fields.hpp:42
Types definitions.
Int(int v=-1)
Definition: api.hpp:52
Int Pid
Definition: api.hpp:60
int value
Definition: api.hpp:50
const ::cargo::ipc::MethodID METHOD_GET_CONFIG
Definition: api.hpp:39
const ::cargo::ipc::MethodID METHOD_SET_CONFIG
Definition: api.hpp:38
#define CARGO_REGISTER(...)
Registers cargo fields within class.
Definition: fields.hpp:74
const ::cargo::ipc::MethodID METHOD_GUARD_READY
Definition: api.hpp:42
Int ExitStatus
Definition: api.hpp:61
const ::cargo::ipc::MethodID METHOD_INIT_STOPPED
Definition: api.hpp:43
unsigned int MethodID
Definition: types.hpp:43
const ::cargo::ipc::MethodID METHOD_START
Definition: api.hpp:40
Definition: api.hpp:49
const ::cargo::ipc::MethodID METHOD_STOP
Definition: api.hpp:41