tizen 2.3.1 release
[framework/multimedia/gst-plugins-ext0.10.git] / drmsrc / src / drm_util.h
1 /*
2  * drm_util.h
3  *
4  * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Seungbae Shin <seungbae.shin@samsung.com>
7  *
8  * This library is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU Lesser General Public License as published by the
10  * Free Software Foundation; either version 2.1 of the License, or (at your option)
11  * any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but WITHOUT ANY
14  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
15  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16  * License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this library; if not, write to the Free Software Foundation, Inc., 51
20  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  *
22  */
23
24 #ifndef __DRM_UTIL_H__
25 #define __DRM_UTIL_H__
26
27 #include <gst/gst.h>
28
29 #include <drm_trusted_client_types.h>
30
31 gboolean drm_util_open (DRM_DECRYPT_HANDLE *phandle, char* file_path, int file_type);
32 gboolean drm_util_read (DRM_DECRYPT_HANDLE handle, unsigned char* buf, unsigned int buf_length, unsigned int *read_size);
33 gboolean drm_util_seek (DRM_DECRYPT_HANDLE handle, int offset, int mode);
34 gboolean drm_util_tell (DRM_DECRYPT_HANDLE handle, unsigned int *offset);
35 gboolean drm_util_close (DRM_DECRYPT_HANDLE *phandle);
36
37 #endif /* __DRM_UTIL_H__ */