summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-jae Park <nicesj.park@samsung.com>2013-03-28 01:46:23 +0000
committerSung-jae Park <nicesj.park@samsung.com>2013-03-28 01:46:23 +0000
commit05643f8262e396e04b11cdec347c24601db1bc61 (patch)
treed10988c1f78481745f1ebc253f95ac4191f5dd8f
parent4e08539814b1ed9d3094825b2b68c83dc38082a5 (diff)
downloadlivebox-service-05643f8262e396e04b11cdec347c24601db1bc61.tar.gz
livebox-service-05643f8262e396e04b11cdec347c24601db1bc61.tar.bz2
livebox-service-05643f8262e396e04b11cdec347c24601db1bc61.zip
[Build Break] Add missing header.
Change-Id: Ie80bf79a4933403a112f9fb5927468ee44e591f9
-rw-r--r--include/livebox-errno.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/include/livebox-errno.h b/include/livebox-errno.h
new file mode 100644
index 0000000..ca85a79
--- /dev/null
+++ b/include/livebox-errno.h
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2013 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
+ *
+ * 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 __LIVEBOX_ERRNO_H
+#define __LIVEBOX_ERRNO_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+enum livebox_status {
+ LB_STATUS_SUCCESS = 0x00000000,
+ LB_STATUS_ERROR = 0x80000000,
+ LB_STATUS_ERROR_INVALID = LB_STATUS_ERROR | 0x0001,
+ LB_STATUS_ERROR_FAULT = LB_STATUS_ERROR | 0x0002,
+ LB_STATUS_ERROR_MEMORY = LB_STATUS_ERROR | 0x0004,
+ LB_STATUS_ERROR_EXIST = LB_STATUS_ERROR | 0x0008,
+ LB_STATUS_ERROR_BUSY = LB_STATUS_ERROR | 0x0010,
+ LB_STATUS_ERROR_PERMISSION = LB_STATUS_ERROR | 0x0020,
+ LB_STATUS_ERROR_ALREADY = LB_STATUS_ERROR | 0x0040,
+ LB_STATUS_ERROR_CANCEL = LB_STATUS_ERROR | 0x0080,
+ LB_STATUS_ERROR_IO = LB_STATUS_ERROR | 0x0100,
+ LB_STATUS_ERROR_NOT_EXIST = LB_STATUS_ERROR | 0x0200,
+ LB_STATUS_ERROR_TIMEOUT = LB_STATUS_ERROR | 0x0400,
+ LB_STATUS_ERROR_NOT_IMPLEMENTED = LB_STATUS_ERROR | 0x0800,
+ LB_STATUS_ERROR_NO_SPACE = LB_STATUS_ERROR | 0x1000,
+};
+
+#define LB_STATUS_IS_ERROR(s) (!!((s) & LB_STATUS_ERROR))
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/* End of a file */