Imported Upstream version 1.0.0
[platform/upstream/iotivity.git] / service / resource-hosting / SampleApp / tizen / sampleConsumer / src / oicapp-utils.h
1 /*
2  * Copyright (c) 2010 Samsung Electronics, Inc.
3  * All rights reserved.
4  *
5  * This software is a confidential and proprietary information
6  * of Samsung Electronics, Inc. ("Confidential Information").  You
7  * shall not disclose such Confidential Information and shall use
8  * it only in accordance with the terms of the license agreement
9  * you entered into with Samsung Electronics.
10  */
11 #ifndef __OICAPP_UTILS_H__
12 #define __OICAPP_UTILS_H__
13
14 #include "oicapp-sampleConsumer.h"
15
16 #ifdef __cplusplus
17 extern "C"
18 {
19 #endif
20
21 void oicapp_fail_popup(oicappData *ad , char *title , char *text , int timeout);
22 void oicapp_util_update(oicappData *ad);
23 char *oicapp_util_wifi();
24
25 int oicapp_client_start(oicappData *ad);
26 void oicapp_client_stop();
27 int oicapp_client_put(int power , int level);
28
29 int oicapp_server_start(oicappData *ad);
30 void oicapp_server_stop();
31 void oicapp_server_put(int power , int level);
32
33 extern void *ChangeLightRepresentation(void *param);
34
35 void findResourceCandidate(oicappData *ad);
36 void startObserve(oicappData *ad);
37
38 #ifdef __cplusplus
39 }
40
41 #endif
42
43 #endif //__OICAPP_UTILS_H__
44