--- /dev/null
+/*
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * 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 __CONFIG_H__
+#define __CONFIG_H__
+
+#define ACCESSORY_SERVICE_PROFILE_ID "/sample/filetransfersender"
+#define ACCESSORY_SERVICE_CHANNEL_ID 107
+
+#define SYNC_ALARM_DELAY 0
+#define SYNC_ALARM_INTERVAL 12*60*60
+
+#define REMOTE_APP_ID "com.samsung.w-input-selector"
+#define MESSAGE_PORT_REMOTE_NAME REMOTE_APP_ID"_msg_port_rcv"
+
+#define MINIMUM_BATTERY 15
+
+#endif /* __CONFIG_H__ */
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
#include <glib.h>
#ifndef __FT_H__
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
#ifndef __debug_H__
#define __debug_H__
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
#include <app_common.h>
#include <dlog.h>
#include <glib.h>
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
#include <glib.h>
#include <message_port.h>
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
#ifndef __STICKER_INFO_H__
#define __STICKER_INFO_H__
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
#ifndef __STICKER_REQUEST_H__
#define __STICKER_REQUEST_H__
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
#include <glib.h>
#ifndef __ALARM_H__
#define __ALARM_H__
#define APP_CONTROL_OPERATION_SYNC_ALARM "http://tizen.org/appcontrol/operation/sticker_sync_alarm"
-#define SYNC_ALARM_DELAY 0
-#define SYNC_ALARM_INTERVAL 12*60*60
bool sync_alarm_register(const char *operation, int delay, int period);
bool sync_alarm_exist();
#include "sticker_request.h"
#include "message.h"
#include "sync_alarm.h"
-
-#define ACCESSORY_SERVICE_PROFILE_ID "/sample/filetransfersender"
-#define ACCESSORY_SERVICE_CHANNEL_ID 107
+#include "config.h"
#define STICKER_SYNC_FEATURE_REQ "sticker-sync-feature-req"
#define STICKER_SYNC_FEATURE_RSP "sticker-sync-feature-rsp"
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
#include <app_common.h>
#include <service_app.h>
#include <stdlib.h>
#include "main.h"
#include "ft.h"
#include "log.h"
+#include "config.h"
#include "sync_alarm.h"
-#define MINIMUM_BATTERY 15
-
static bool app_create(void *data)
{
/* Hook to take necessary actions before main event loop starts
#include "message.h"
#include "log.h"
-
-#define REMOTE_APP_ID "com.samsung.w-input-selector"
-#define MESSAGE_PORT_REMOTE_NAME REMOTE_APP_ID"_msg_port_rcv"
+#include "config.h"
static int port_id = -1;
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
#include "sticker_info.h"
#include <sticker_provider.h>
#include <app_common.h>
#include <stdlib.h>
#include "log.h"
+#include "config.h"
static int recurring_alarm_id = -1;