4 * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Seungbae Shin <seungbae.shin@samsung.com>
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)
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.
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
24 #ifndef __DRM_UTIL_H__
25 #define __DRM_UTIL_H__
29 #include <drm_trusted_client_types.h>
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);
37 #endif /* __DRM_UTIL_H__ */