change license
[apps/core/preloaded/music-player.git] / src / common / include / mp-item.h
1 /*
2  * Copyright 2012         Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *  http://floralicense.org/license/
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef __MP_ITEM_H_
18 #define __MP_ITEM_H_
19
20 #include <Elementary.h>
21 #include <mp-define.h>
22 bool mp_item_update_db(char *fid);
23
24 int mp_item_share_by_bt(const char *formed_path, int file_cnt);
25
26
27 //===========for ALL share DNLA======================//
28 #define AS_IPC_NAME "org.tizen.allshare"
29 #define AS_IPC_REQUEST_OBJ "/com/samsumg/allshare"
30 #define AS_IPC_INTERFACE "org.tizen.allshare"
31
32 #define AS_IPC_REQUEST_METHOD "Request"
33
34 typedef struct
35 {
36         int param1;             //Allshare_opp_req_t type
37         int param2;             //the number of files
38         char *param3;           //file path
39 } Allshare_para_info_t;
40
41 typedef enum
42 {
43         AS_OPP_REQ_FILE_PLAY
44 } Allshare_opp_req_t;
45
46 #define mp_object_free(obj)     \
47 do {                                            \
48         if(obj != NULL) {               \
49                 g_free(obj);            \
50                 obj = NULL;                     \
51         }                                               \
52 }while(0)
53
54 #endif