1 /* 2 This file is part of Deadbeef Player source code 3 http://deadbeef.sourceforge.net 4 5 playlist metadata management 6 7 Copyright (C) 2009-2013 Alexey Yakovenko 8 9 This software is provided 'as-is', without any express or implied 10 warranty. In no event will the authors be held liable for any damages 11 arising from the use of this software. 12 13 Permission is granted to anyone to use this software for any purpose, 14 including commercial applications, and to alter it and redistribute it 15 freely, subject to the following restrictions: 16 17 1. The origin of this software must not be misrepresented; you must not 18 claim that you wrote the original software. If you use this software 19 in a product, an acknowledgment in the product documentation would be 20 appreciated but is not required. 21 2. Altered source versions must be plainly marked as such, and must not be 22 misrepresented as being the original software. 23 3. This notice may not be removed or altered from any source distribution. 24 25 Alexey Yakovenko waker@users.sourceforge.net 26 */ 27 #ifndef __PLMETA_H 28 #define __PLMETA_H 29 30 void 31 plt_add_meta (playlist_t *it, const char *key, const char *value); 32 33 void 34 plt_append_meta (playlist_t *it, const char *key, const char *value); 35 36 void 37 plt_replace_meta (playlist_t *it, const char *key, const char *value); 38 39 void 40 plt_set_meta_int (playlist_t *it, const char *key, int value); 41 42 void 43 plt_set_meta_float (playlist_t *it, const char *key, float value); 44 45 void 46 plt_delete_meta (playlist_t *it, const char *key); 47 48 const char * 49 plt_find_meta (playlist_t *it, const char *key); 50 51 int 52 plt_find_meta_int (playlist_t *it, const char *key, int def); 53 54 float 55 plt_find_meta_float (playlist_t *it, const char *key, float def); 56 57 DB_metaInfo_t * 58 plt_get_metadata_head (playlist_t *it); 59 60 void 61 plt_delete_metadata (playlist_t *it, DB_metaInfo_t *meta); 62 63 void 64 plt_delete_all_meta (playlist_t *it); 65 66 #endif 67