Remove drm source code.
[platform/core/multimedia/libmedia-thumbnail.git] / server / include / thumb-server-internal.h
1 /*
2  * media-thumbnail-server
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Hyunjun Ko <zzoon.ko@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21
22 #include <glib.h>
23 #include "media-thumb-ipc.h"
24 #include "media-thumb-db.h"
25
26 #ifndef _THUMB_DAEMON_INTERNAL_H_
27 #define _THUMB_DAEMON_INTERNAL_H_
28
29 #define SAFE_FREE(src)      { if(src) {free(src); src = NULL;}}
30
31 typedef enum {
32         MEDIA_SERVER_PID = 1,
33         OTHERS_PID = 0,
34         GETPID_FAIL = -1
35 } _pid_e;
36
37 typedef enum {
38         BLOCK_MODE = 0,
39         TIMEOUT_MODE = 1
40 } _server_mode_e;
41
42 gboolean _thumb_daemon_start_jobs(gpointer data);
43 void _thumb_daemon_finish_jobs();
44 void _thumb_daemon_mmc_eject_vconf_cb(void *data);
45 void _thumb_daemon_vconf_cb(void *data);
46 gboolean _thumb_server_prepare_socket(int *sock_fd);
47 gboolean _thumb_server_read_socket(GIOChannel *src, GIOCondition condition, gpointer data);
48
49 #endif /*_THUMB_DAEMON_INTERNAL_H_*/