*
*/
-#ifndef __CALENDAR_SERVICE_FILTER_H__
-#define __CALENDAR_SERVICE_FILTER_H__
+#ifndef __CAL_FILTER_H__
+#define __CAL_FILTER_H__
#include "calendar_filter.h"
int cal_filter_clone(calendar_filter_h filter, calendar_filter_h* out_filter);
-#endif /*__CALENDAR_SERVICE_FILTER_H__ */
+#endif /*__CAL_FILTER_H__ */
*
*/
-#ifndef __CALENDAR_SERVICE_INOTIFY_H__
-#define __CALENDAR_SERVICE_INOTIFY_H__
+#ifndef __CAL_INOTIFY_H__
+#define __CAL_INOTIFY_H__
#include "calendar_db.h"
#include "cal_typedef.h"
int cal_inotify_unsubscribe(const char *path, void *cb, void *user_data);
void cal_inotify_deinit(void);
-#endif /* __CALENDAR_SERVICE_INOTIFY_H__ */
+#endif /* __CAL_INOTIFY_H__ */
* limitations under the License.
*
*/
-#ifndef __CALENDAR_SERVICE_INTERNAL_H__
-#define __CALENDAR_SERVICE_INTERNAL_H__
+#ifndef __CAL_INTERNAL_H__
+#define __CAL_INTERNAL_H__
#include <stdio.h>
#include <string.h>
#define TLS
#endif
-#endif /* __CALENDAR_SERVICE_INTERNAL_H__ */
+#endif /* __CAL_INTERNAL_H__ */
* limitations under the License.
*
*/
-#ifndef __CALENDAR_SERVICE_LIST_H__
-#define __CALENDAR_SERVICE_LIST_H__
+#ifndef __CAL_LIST_H__
+#define __CAL_LIST_H__
#include "calendar_list.h"
int cal_list_get_nth_record_p(cal_list_s *list_s, int index, calendar_record_h *record);
int cal_list_clear(cal_list_s *list_s);
-#endif /* __CALENDAR_SERVICE_LIST_H__ */
+#endif /* __CAL_LIST_H__ */
*
*/
-#ifndef __CALENDAR_SERVICE_MUTEX_H__
-#define __CALENDAR_SERVICE_MUTEX_H__
+#ifndef __CAL_MUTEX_H__
+#define __CAL_MUTEX_H__
enum {
CAL_MUTEX_CONNECTION,
void cal_mutex_lock(int type);
void cal_mutex_unlock(int type);
-#endif /*__CALENDAR_SERVICE_MUTEX_H__ */
+#endif /*__CAL_MUTEX_H__ */
#include "cal_typedef.h"
#include "cal_view.h"
#include "cal_filter.h"
-#include "cal_query.h"
#include "cal_utils.h"
static bool _cal_query_property_check(const cal_property_info_s *properties,
+++ /dev/null
-/*
- * Calendar Service
- *
- * Copyright (c) 2012 - 2015 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 __CALENDAR_SERVICE_QUERY_H__
-#define __CALENDAR_SERVICE_QUERY_H__
-
-#endif /* __CALENDAR_SERVICE_QUERY_H__ */
* limitations under the License.
*
*/
-#ifndef __CALENDAR_SERVICE_RECORD_H__
-#define __CALENDAR_SERVICE_RECORD_H__
+#ifndef __CAL_RECORD_H__
+#define __CAL_RECORD_H__
#include "calendar_record.h"
}
#endif
-#endif /* __CALENDAR_SERVICE_RECORD_H__ */
+#endif /* __CAL_RECORD_H__ */
*
*/
-#ifndef __CALENDAR_SERVICE_TIME_H__
-#define __CALENDAR_SERVICE_TIME_H__
+#ifndef __CAL_TIME_H__
+#define __CAL_TIME_H__
#include <string.h>
#include <stdlib.h>
void cal_time_get_local_datetime(char *tzid, long long int t, int *y, int *m, int *d, int *h, int *n, int *s);
bool cal_time_is_available_tzid(char *tzid);
-enum cal_extract_field {
- CAL_MONTH,
- CAL_DAY_OF_WEEK,
- CAL_DATE,
-};
-
#ifdef __cplusplus
}
#endif
-#endif /* __CALENDAR_SERVICE_TIME_H__ */
+#endif /* __CAL_TIME_H__ */
*
*/
-#ifndef __CALENDAR_SERVICE_TYPEDEF_H__
-#define __CALENDAR_SERVICE_TYPEDEF_H__
+#ifndef __CAL_TYPEDEF_H__
+#define __CAL_TYPEDEF_H__
#include <glib.h>
#include <complex.h>
* @}
*/
-#endif /* __CALENDAR_SERVICE_TYPEDEF_H__ */
+#endif /* __CAL_TYPEDEF_H__ */
*
*/
-#ifndef __CALENDAR_SERVICE_VCALENDAR_H__
-#define __CALENDAR_SERVICE_VCALENDAR_H__
+#ifndef __CAL_VCALENDAR_H__
+#define __CAL_VCALENDAR_H__
#define _RECORD(i) _calendar_##i
VCALENDAR_TYPE_VTODO,
};
-#endif /* __CALENDAR_SERVICE_VCALENDAR_H__ */
+#endif /* __CAL_VCALENDAR_H__ */
*
*/
-#ifndef __CALENDAR_SERVICE_VCALENDAR_MAKE_H__
-#define __CALENDAR_SERVICE_VCALENDAR_MAKE_H__
+#ifndef __CAL_VCALENDAR_MAKE_H__
+#define __CAL_VCALENDAR_MAKE_H__
#include "calendar_vcalendar.h"
char* cal_vcalendar_make_get_data(cal_make_s *b);
void cal_vcalendar_make_free(cal_make_s **b);
-#endif /* __CALENDAR_SERVICE_VCALENDAR_MAKE_H__ */
+#endif /* __CAL_VCALENDAR_MAKE_H__ */
*
*/
-#ifndef __CALENDAR_SERVICE_VCALENDAR_PARSE_H__
-#define __CALENDAR_SERVICE_VCALENDAR_PARSE_H__
+#ifndef __CAL_VCALENDAR_PARSE_H__
+#define __CAL_VCALENDAR_PARSE_H__
#include "calendar_vcalendar.h"
char* cal_vcalendar_parse_read_key_value(char *stream, char **prop, char **cont);
int cal_vcalendar_parse_vcalendar_object(char *vcalendar_object_stream, calendar_list_h list, vcalendar_foreach_s *foreach_data);
-#endif /* __CALENDAR_SERVICE_VCALENDAR_PARSE_H__ */
+#endif /* __CAL_VCALENDAR_PARSE_H__ */
* limitations under the License.
*
*/
-#ifndef __CALENDAR_SERVICE_VIEW_H__
-#define __CALENDAR_SERVICE_VIEW_H__
+#ifndef __CAL_VIEW_H__
+#define __CAL_VIEW_H__
#include "cal_typedef.h"
#include "calendar_view.h"
const char* cal_view_get_uri(const char *view_uri);
-#endif /* __CALENDAR_SERVICE_VIEW_H__ */
+#endif /* __CAL_VIEW_H__ */
*
*/
-#ifndef __CALENDAR_SERVICE_DBUS_UTILS_H__
-#define __CALENDAR_SERVICE_DBUS_UTILS_H__
+#ifndef __CAL_DBUS_UTILS_H__
+#define __CAL_DBUS_UTILS_H__
/*
* DBUS_INTERFACE name validation.
int cal_dbus_utils_gvariant_to_ids(GVariant *arg_ids, int count, int **ids);
int cal_dbus_utils_gvariant_to_stream(GVariant *arg_stream, int *out_size, char **out_stream);
-#endif /*__CALENDAR_SERVICE_DBUS_UTILS_H__ */
+#endif /*__CAL_DBUS_UTILS_H__ */
*
*/
-#ifndef __CALENDAR_SERVICE_ACCESS_CONTROL_H__
-#define __CALENDAR_SERVICE_ACCESS_CONTROL_H__
+#ifndef __CAL_SERVER_ACCESS_CONTROL_H__
+#define __CAL_SERVER_ACCESS_CONTROL_H__
#include "cal_typedef.h"
bool cal_access_control_have_write_permission(int book_id);
int cal_is_owner(int book_id);
-
-#endif /* __CALENDAR_SERVICE_ACCESS_CONTROL_H__ */
+#endif /* __CAL_SERVER_ACCESS_CONTROL_H__ */
*
*/
-#ifndef __CALENDAR_SERVICE_ACCOUNT_H__
-#define __CALENDAR_SERVICE_ACCOUNT_H__
+#ifndef __CAL_SERVER_ACCOUNT_H__
+#define __CAL_SERVER_ACCOUNT_H__
int cal_server_account_init(void);
void cal_server_account_deinit(void);
-#endif /*__CALENDAR_SERVICE_ACCOUNT_H__ */
+#endif /*__CAL_SERVER_ACCOUNT_H__ */
*
*/
-#ifndef __CALENDAR_SERVICE_ONDEMAND_H__
-#define __CALENDAR_SERVICE_ONDEMAND_H__
+#ifndef __CAL_SERVER_ONDEMAND_H__
+#define __CAL_SERVER_ONDEMAND_H__
void cal_server_ondemand_stop(void);
void cal_server_ondemand_start(void);
void cal_server_ondemand_hold(void);
void cal_server_ondemand_release(void);
-#endif /*__CALENDAR_SERVICE_ONDEMAND_H__ */
+#endif /*__CAL_SERVER_ONDEMAND_H__ */
*
*/
-#ifndef __CALENDAR_SERVICE_CALENDAR_H__
-#define __CALENDAR_SERVICE_CALENDAR_H__
+#ifndef __CAL_SERVER_SERVICE_H__
+#define __CAL_SERVER_SERVICE_H__
void cal_service_internal_disconnect(void);
int cal_connect(void);
int cal_disconnect(void);
-#endif /* __CALENDAR_SERVICE_CALENDAR_H__ */
+#endif /* __CAL_SERVER_SERVICE_H__ */
* limitations under the License.
*
*/
-#ifndef __CAL_DB_PLUGIN_CALENDAR_HELPER_H__
-#define __CAL_DB_PLUGIN_CALENDAR_HELPER_H__
+#ifndef __CAL_DB_PLUGIN_BOOK_HELPER_H__
+#define __CAL_DB_PLUGIN_BOOK_HELPER_H__
int cal_db_delete_account(int account_id);
-#endif /* __CAL_DB_PLUGIN_CALENDAR_HELPER_H__ */
+#endif /* __CAL_DB_PLUGIN_BOOK_HELPER_H__ */