INCLUDE_DIRECTORIES(
${CMAKE_INSTALL_PREFIX}/${INCDIR}/private
- ${CMAKE_SOURCE_DIR}/include
${CMAKE_SOURCE_DIR}/src/shared
)
SET(PC_INCLUDE "${CMAKE_INSTALL_PREFIX}/${INCDIR}")
SET(PC_LIBDIR "${CMAKE_INSTALL_LIBDIR}")
-INSTALL(
- FILES ${CMAKE_SOURCE_DIR}/include/JobSchedulerService.h
- DESTINATION ${INCDIR}/private
-)
INSTALL(
DIRECTORY ${CMAKE_SOURCE_DIR}/include/
DESTINATION ${INCDIR}
- FILES_MATCHING
- PATTERN "*.h"
- PATTERN "JobSchedulerService.h" EXCLUDE
)
ADD_SUBDIRECTORY(src/client-dummy)
+++ /dev/null
-/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
- *
- * 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 __CONTEXT_JOB_SCHEDULER_H__
-#define __CONTEXT_JOB_SCHEDULER_H__
-
-#include <JobSchedulerTypes.h>
-
-/* Internal C/C++ API */
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-int ctx_job_scheduler_test();
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
+++ /dev/null
-/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
- *
- * 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 __CONTEXT_JOB_SCHEDULER_SERVICE_H__
-#define __CONTEXT_JOB_SCHEDULER_SERVICE_H__
-
-/* This header SHOULD NOT be included by other headers in this directory. */
-
-#include <ServiceBase.h>
-#include <JobSchedulerTypes.h>
-
-namespace ctx {
-
- class EXPORT_API JobSchedulerService : public ServiceBase {
- public:
- JobSchedulerService(GDBusConnection* conn);
- ~JobSchedulerService();
-
- bool isUserService();
-
- protected:
- bool prepare();
- void cleanup();
-
- ClientBase* createClient(const std::string& busName);
- };
-
-}
-
-#endif
+++ /dev/null
-/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
- *
- * 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 __CONTEXT_JOB_SCHEDULER_TYPES_H__
-#define __CONTEXT_JOB_SCHEDULER_TYPES_H__
-
-#include <tizen.h>
-
-
-#endif
--- /dev/null
+/*
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ *
+ * 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 __CAPI_CONTEXT_JOB_SCHEDULER_INTERNAL_H__
+#define __CAPI_CONTEXT_JOB_SCHEDULER_INTERNAL_H__
+
+#include <tizen.h>
+#include <job_scheduler_types_internal.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+int ctx_job_scheduler_test();
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
--- /dev/null
+/*
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ *
+ * 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 __CAPI_CONTEXT_JOB_SCHEDULER_TYPES_INTERNAL_H__
+#define __CAPI_CONTEXT_JOB_SCHEDULER_TYPES_INTERNAL_H__
+
+
+#endif
--- /dev/null
+/*
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ *
+ * 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 __CONTEXT_JOB_SCHEDULER_SERVICE_H__
+#define __CONTEXT_JOB_SCHEDULER_SERVICE_H__
+
+#include <ServiceBase.h>
+
+namespace ctx {
+
+ class EXPORT_API JobSchedulerService : public ServiceBase {
+ public:
+ JobSchedulerService(GDBusConnection* conn);
+ ~JobSchedulerService();
+
+ bool isUserService();
+
+ protected:
+ bool prepare();
+ void cleanup();
+
+ ClientBase* createClient(const std::string& busName);
+ };
+
+}
+
+#endif
SET(DEPS "${DEPS} context-common-client")
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
+
FILE(GLOB_RECURSE SRCS *.cpp)
MESSAGE("Sources: ${SRCS}")
+++ /dev/null
-/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
- *
- * 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 <JobSchedulerTypesPrivate.h>
-#include <JobScheduler.h>
-
-using namespace ctx;
-
-/* TODO: Remove this test code */
-EXPORT_API int ctx_job_scheduler_test()
-{
- return E_SUPPORT;
-}
--- /dev/null
+/*
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ *
+ * 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 <JobSchedulerTypesPrivate.h>
+#include <job_scheduler_internal.h>
+
+/* TODO: Remove this test code */
+EXPORT_API int ctx_job_scheduler_test()
+{
+ return E_SUPPORT;
+}
SET(DEPS "${DEPS} context-common-client")
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
+
FILE(GLOB_RECURSE SRCS *.cpp ../shared/*.cpp)
MESSAGE("Sources: ${SRCS}")
+++ /dev/null
-/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
- *
- * 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 <JobSchedulerTypesPrivate.h>
-#include <ServiceProxy.h>
-#include <JobScheduler.h>
-
-using namespace ctx;
-
-/* TODO: Remove this test code */
-EXPORT_API int ctx_job_scheduler_test()
-{
- // ServiceProxy object can be maintained as a static object.
- ServiceProxy proxy(CTX_JOB_SCHEDULER);
-
- GVariant* output = NULL;
-
- int err = proxy.call("test", g_variant_new("(i)", 100), &output);
-
- _I(YELLOW("Return: %d (%s)"), err, CTX_ERROR_STR(err));
-
- return err;
-}
--- /dev/null
+/*
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ *
+ * 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 <JobSchedulerTypesPrivate.h>
+#include <job_scheduler_internal.h>
+
+/* TODO: Remove this test code */
+EXPORT_API int ctx_job_scheduler_test()
+{
+ return E_SUPPORT;
+}
SET(DEPS "${DEPS} context-common-server")
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include/private)
+
FILE(GLOB_RECURSE SRCS *.cpp)
MESSAGE("Sources: ${SRCS}")
SET(DEPS "${DEPS} context-common-server")
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include/private)
+
FILE(GLOB_RECURSE SRCS *.cpp ../shared/*.cpp)
MESSAGE("Sources: ${SRCS}")