gmi.h

Go to the documentation of this file.
00001 /*
00002  *      Tag and audio information retrieval.
00003  *
00004  *      Copyright (c) 2005-2007 Naoaki Okazaki
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA, or visit
00019  * http://www.gnu.org/copyleft/gpl.html .
00020  *
00021  */
00022 
00023 /* $Id: gmi.h 328 2007-02-10 17:50:11Z nyaochi $ */
00024 
00025 #ifndef __GETINFO_H__
00026 #define __GETINFO_H__
00027 
00028 #ifdef  GMI_EXPORTS
00029 #define GMIAPI  __declspec(dllexport)
00030 #else
00031 #define GMIAPI
00032 #endif
00033 
00034 #ifdef  __cplusplus
00035 extern "C" {
00036 #endif/*__cplusplus*/
00037 
00038 #include <pmplib/pmp.h>
00039 
00045 enum {
00046         GMIF_NONE                       = 0x00000000,
00047         GMIF_TAG                        = 0x00000001,
00048         GMIF_STRIP_ARTIST       = 0x00000010,
00049         GMIF_GENRE                      = 0x00010000,
00050         GMIF_ARTIST                     = 0x00020000,
00051         GMIF_ALBUM                      = 0x00040000,
00052         GMIF_TITLE                      = 0x00080000,
00053         GMIF_NUMBER                     = 0x00100000,
00054         GMIF_PARSEMASK          = 0x00FF0000,
00055 };
00056 
00057 #define media_info_t    pmp_music_record_t
00058 #define gmi_finish              pmplib_record_finish
00059 
00060 GMIAPI int gmi_get(
00061         media_info_t* info,
00062         const ucs2char_t *filename,
00063         const ucs2char_t* path_to_music,
00064         int flag,
00065         const char *charset,
00066         ucs2char_t **strip_words,
00067         int num_strip_words
00068         );
00069 
00072 #ifdef  __cplusplus
00073 }
00074 #endif/*__cplusplus*/
00075 
00076 #endif/*__GETINFO_H__*/