summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/connectivity.h26
-rw-r--r--inc/connectivity_internal.h28
2 files changed, 12 insertions, 42 deletions
diff --git a/inc/connectivity.h b/inc/connectivity.h
index ed4795a..5bb4ba3 100644
--- a/inc/connectivity.h
+++ b/inc/connectivity.h
@@ -22,16 +22,14 @@
#ifndef __POSITION_FINDER_CONNECTIVITY_H__
#define __POSITION_FINDER_CONNECTIVITY_H__
-#include "connectivity_internal.h"
-
typedef struct _connectivity_resource connectivity_resource_s;
typedef enum {
- CONNECTIVITY_TYPE_DEFAULT = 0,
- CONNECTIVITY_TYPE_IOTIVITY,
- CONNECTIVITY_TYPE_HTTP,
- CONNECTIVITY_TYPE_MAX
-} connectivity_type_e;
+ CONNECTIVITY_PROTOCOL_DEFAULT = 0,
+ CONNECTIVITY_PROTOCOL_IOTIVITY,
+ CONNECTIVITY_PROTOCOL_HTTP,
+ CONNECTIVITY_PROTOCOL_MAX
+ } connectivity_protocol_e;
/**
* @brief Create connectivity resource and registers the resource in server.
@@ -90,12 +88,12 @@ extern int connectivity_notify_double(connectivity_resource_s *resource_info, co
*/
extern int connectivity_notify_string(connectivity_resource_s *resource_info, const char *key, const char *value);
-/* Here is six new functions, I don't like a name of these functions, please recommand me a good name */
-extern int connectivity_set_connectivity_type(connectivity_type_e connectivity_type);
-extern int connectivity_notify_multi_add_bool(connectivity_resource_s *resource_info, const char *key, bool value);
-extern int connectivity_notify_multi_add_int(connectivity_resource_s *resource_info, const char *key, int value);
-extern int connectivity_notify_multi_add_double(connectivity_resource_s *resource_info, const char *key, double value);
-extern int connectivity_notify_multi_add_string(connectivity_resource_s *resource_info, const char *key, const char *value);
-extern int connectivity_notify_multi_perform(connectivity_resource_s *resource_info);
+/* TODO : add comments for these functions */
+extern int connectivity_set_protocol(connectivity_protocol_e protocol_type);
+extern int connectivity_attributes_add_bool(connectivity_resource_s *resource_info, const char *key, bool value);
+extern int connectivity_attributes_add_int(connectivity_resource_s *resource_info, const char *key, int value);
+extern int connectivity_attributes_add_double(connectivity_resource_s *resource_info, const char *key, double value);
+extern int connectivity_attributes_add_string(connectivity_resource_s *resource_info, const char *key, const char *value);
+extern int connectivity_attributes_notify_all(connectivity_resource_s *resource_info);
#endif /* __POSITION_FINDER_CONNECTIVITY_H__ */
diff --git a/inc/connectivity_internal.h b/inc/connectivity_internal.h
deleted file mode 100644
index 33ea0e4..0000000
--- a/inc/connectivity_internal.h
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
- *
- * Contact: Jin Yoon <jinny.yoon@samsung.com>
- * Geunsun Lee <gs86.lee@samsung.com>
- * Eunyoung Lee <ey928.lee@samsung.com>
- * Junkyu Han <junkyu.han@samsung.com>
- *
- * Licensed under the Flora License, Version 1.1 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.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 __POSITION_FINDER_CONNECTIVITY_INTERNAL_H__
-#define __POSITION_FINDER_CONNECTIVITY_INTERNAL_H__
-
-extern int connectivity_init(void);
-extern int connectivity_fini(void);
-
-#endif /* __POSITION_FINDER_CONNECTIVITY_INTERNAL_H__ */