libmusicbrainz4
4.0.1
|
00001 /* -------------------------------------------------------------------------- 00002 00003 libmusicbrainz4 - Client library to access MusicBrainz 00004 00005 Copyright (C) 2011 Andrew Hawkins 00006 00007 This file is part of libmusicbrainz4. 00008 00009 This library is free software; you can redistribute it and/or 00010 modify it under the terms of v2 of the GNU Lesser General Public 00011 License as published by the Free Software Foundation. 00012 00013 libmusicbrainz4 is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 Lesser General Public License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with this library. If not, see <http://www.gnu.org/licenses/>. 00020 00021 THIS FILE IS AUTOMATICALLY GENERATED - DO NOT EDIT IT! 00022 00023 ----------------------------------------------------------------------------*/ 00024 00025 00026 /* 00027 Things you should delete using the appropriate mb4_xxx_delete() function: 00028 00029 * The query object you create to do the actual work 00030 * Any object or list returned from one of the mb4_query_xxx() functions 00031 * The return from mb4_release_media_matching_discid() function 00032 * The return from any mb4_xxx_clone() function 00033 00034 Everything else remains managed by the library, and should not be deleted 00035 00036 If in doubt, valgrind is a useful way to spot leaks or things being deleted 00037 when they shouldn't be. 00038 00039 */ 00040 00041 #ifndef _MUSICBRAINZ4_MB_C_H 00042 #define _MUSICBRAINZ4_MB_C_H 00043 00044 #ifdef __cplusplus 00045 extern "C" 00046 { 00047 #endif 00048 00049 #if defined(__GNUC__) && __GNUC__ >= 4 00050 00051 #define LIBMB4_DEPRECATED __attribute__ ((deprecated)) 00052 00053 #else 00054 00055 #define LIBMB4_DEPRECATED 00056 00057 #endif 00058 00059 typedef void *Mb4Entity; 00060 typedef void *Mb4Alias; 00061 typedef void *Mb4Annotation; 00062 typedef void *Mb4Artist; 00063 typedef void *Mb4ArtistCredit; 00064 typedef void *Mb4Attribute; 00065 typedef void *Mb4CDStub; 00066 typedef void *Mb4Collection; 00067 typedef void *Mb4Disc; 00068 typedef void *Mb4FreeDBDisc; 00069 typedef void *Mb4ISRC; 00070 typedef void *Mb4Label; 00071 typedef void *Mb4LabelInfo; 00072 typedef void *Mb4Lifespan; 00073 typedef void *Mb4Medium; 00074 typedef void *Mb4Message; 00075 typedef void *Mb4Metadata; 00076 typedef void *Mb4NameCredit; 00077 typedef void *Mb4NonMBTrack; 00078 typedef void *Mb4PUID; 00079 typedef void *Mb4Query; 00080 typedef void *Mb4Rating; 00081 typedef void *Mb4Recording; 00082 typedef void *Mb4Relation; 00083 typedef void *Mb4Release; 00084 typedef void *Mb4ReleaseGroup; 00085 typedef void *Mb4Tag; 00086 typedef void *Mb4TextRepresentation; 00087 typedef void *Mb4Track; 00088 typedef void *Mb4UserRating; 00089 typedef void *Mb4UserTag; 00090 typedef void *Mb4Work; 00091 typedef void *Mb4AliasList; 00092 typedef void *Mb4AnnotationList; 00093 typedef void *Mb4ArtistList; 00094 typedef void *Mb4AttributeList; 00095 typedef void *Mb4CDStubList; 00096 typedef void *Mb4CollectionList; 00097 typedef void *Mb4DiscList; 00098 typedef void *Mb4FreeDBDiscList; 00099 typedef void *Mb4ISRCList; 00100 typedef void *Mb4LabelList; 00101 typedef void *Mb4LabelInfoList; 00102 typedef void *Mb4MediumList; 00103 typedef void *Mb4NameCreditList; 00104 typedef void *Mb4NonMBTrackList; 00105 typedef void *Mb4PUIDList; 00106 typedef void *Mb4RecordingList; 00107 typedef void *Mb4RelationList; 00108 typedef void *Mb4RelationListList; 00109 typedef void *Mb4ReleaseList; 00110 typedef void *Mb4ReleaseGroupList; 00111 typedef void *Mb4TagList; 00112 typedef void *Mb4TrackList; 00113 typedef void *Mb4UserTagList; 00114 typedef void *Mb4WorkList; 00115 00123 int mb4_entity_ext_attributes_size(Mb4Entity Entity); 00124 00135 int mb4_entity_ext_attribute_name(Mb4Entity Entity, int Item, char *str, int len); 00136 00147 int mb4_entity_ext_attribute_value(Mb4Entity Entity, int Item, char *str, int len); 00148 00156 int mb4_entity_ext_elements_size(Mb4Entity Entity); 00157 00168 int mb4_entity_ext_element_name(Mb4Entity Entity, int Item, char *str, int len); 00169 00180 int mb4_entity_ext_element_value(Mb4Entity Entity, int Item, char *str, int len); 00181 00187 void mb4_alias_delete(Mb4Alias Alias); 00188 00197 Mb4Alias mb4_alias_clone(Mb4Alias Alias); 00198 00208 int mb4_alias_get_locale(Mb4Alias Alias, char *str, int len); 00209 00219 int mb4_alias_get_text(Mb4Alias Alias, char *str, int len); 00220 00226 void mb4_annotation_delete(Mb4Annotation Annotation); 00227 00236 Mb4Annotation mb4_annotation_clone(Mb4Annotation Annotation); 00237 00247 int mb4_annotation_get_type(Mb4Annotation Annotation, char *str, int len); 00248 00258 int mb4_annotation_get_entity(Mb4Annotation Annotation, char *str, int len); 00259 00269 int mb4_annotation_get_name(Mb4Annotation Annotation, char *str, int len); 00270 00280 int mb4_annotation_get_text(Mb4Annotation Annotation, char *str, int len); 00281 00287 void mb4_artist_delete(Mb4Artist Artist); 00288 00297 Mb4Artist mb4_artist_clone(Mb4Artist Artist); 00298 00308 int mb4_artist_get_id(Mb4Artist Artist, char *str, int len); 00309 00319 int mb4_artist_get_type(Mb4Artist Artist, char *str, int len); 00320 00330 int mb4_artist_get_name(Mb4Artist Artist, char *str, int len); 00331 00341 int mb4_artist_get_sortname(Mb4Artist Artist, char *str, int len); 00342 00352 int mb4_artist_get_gender(Mb4Artist Artist, char *str, int len); 00353 00363 int mb4_artist_get_country(Mb4Artist Artist, char *str, int len); 00364 00374 int mb4_artist_get_disambiguation(Mb4Artist Artist, char *str, int len); 00375 00383 Mb4Lifespan mb4_artist_get_lifespan(Mb4Artist Artist); 00384 00392 Mb4AliasList mb4_artist_get_aliaslist(Mb4Artist Artist); 00393 00401 Mb4RecordingList mb4_artist_get_recordinglist(Mb4Artist Artist); 00402 00410 Mb4ReleaseList mb4_artist_get_releaselist(Mb4Artist Artist); 00411 00419 Mb4ReleaseGroupList mb4_artist_get_releasegrouplist(Mb4Artist Artist); 00420 00428 Mb4LabelList mb4_artist_get_labellist(Mb4Artist Artist); 00429 00437 Mb4WorkList mb4_artist_get_worklist(Mb4Artist Artist); 00438 00448 Mb4RelationList mb4_artist_get_relationlist(Mb4Artist Artist) LIBMB4_DEPRECATED; 00449 00457 Mb4RelationListList mb4_artist_get_relationlistlist(Mb4Artist Artist); 00458 00466 Mb4TagList mb4_artist_get_taglist(Mb4Artist Artist); 00467 00475 Mb4UserTagList mb4_artist_get_usertaglist(Mb4Artist Artist); 00476 00484 Mb4Rating mb4_artist_get_rating(Mb4Artist Artist); 00485 00493 Mb4UserRating mb4_artist_get_userrating(Mb4Artist Artist); 00494 00500 void mb4_artistcredit_delete(Mb4ArtistCredit ArtistCredit); 00501 00510 Mb4ArtistCredit mb4_artistcredit_clone(Mb4ArtistCredit ArtistCredit); 00511 00519 Mb4NameCreditList mb4_artistcredit_get_namecreditlist(Mb4ArtistCredit ArtistCredit); 00520 00526 void mb4_attribute_delete(Mb4Attribute Attribute); 00527 00536 Mb4Attribute mb4_attribute_clone(Mb4Attribute Attribute); 00537 00547 int mb4_attribute_get_text(Mb4Attribute Attribute, char *str, int len); 00548 00554 void mb4_cdstub_delete(Mb4CDStub CDStub); 00555 00564 Mb4CDStub mb4_cdstub_clone(Mb4CDStub CDStub); 00565 00575 int mb4_cdstub_get_id(Mb4CDStub CDStub, char *str, int len); 00576 00586 int mb4_cdstub_get_title(Mb4CDStub CDStub, char *str, int len); 00587 00597 int mb4_cdstub_get_artist(Mb4CDStub CDStub, char *str, int len); 00598 00608 int mb4_cdstub_get_barcode(Mb4CDStub CDStub, char *str, int len); 00609 00619 int mb4_cdstub_get_comment(Mb4CDStub CDStub, char *str, int len); 00620 00628 Mb4NonMBTrackList mb4_cdstub_get_nonmbtracklist(Mb4CDStub CDStub); 00629 00635 void mb4_collection_delete(Mb4Collection Collection); 00636 00645 Mb4Collection mb4_collection_clone(Mb4Collection Collection); 00646 00656 int mb4_collection_get_id(Mb4Collection Collection, char *str, int len); 00657 00667 int mb4_collection_get_name(Mb4Collection Collection, char *str, int len); 00668 00678 int mb4_collection_get_editor(Mb4Collection Collection, char *str, int len); 00679 00687 Mb4ReleaseList mb4_collection_get_releaselist(Mb4Collection Collection); 00688 00694 void mb4_disc_delete(Mb4Disc Disc); 00695 00704 Mb4Disc mb4_disc_clone(Mb4Disc Disc); 00705 00715 int mb4_disc_get_id(Mb4Disc Disc, char *str, int len); 00716 00724 int mb4_disc_get_sectors(Mb4Disc Disc); 00725 00733 Mb4ReleaseList mb4_disc_get_releaselist(Mb4Disc Disc); 00734 00740 void mb4_freedbdisc_delete(Mb4FreeDBDisc FreeDBDisc); 00741 00750 Mb4FreeDBDisc mb4_freedbdisc_clone(Mb4FreeDBDisc FreeDBDisc); 00751 00761 int mb4_freedbdisc_get_id(Mb4FreeDBDisc FreeDBDisc, char *str, int len); 00762 00772 int mb4_freedbdisc_get_title(Mb4FreeDBDisc FreeDBDisc, char *str, int len); 00773 00783 int mb4_freedbdisc_get_artist(Mb4FreeDBDisc FreeDBDisc, char *str, int len); 00784 00794 int mb4_freedbdisc_get_category(Mb4FreeDBDisc FreeDBDisc, char *str, int len); 00795 00805 int mb4_freedbdisc_get_year(Mb4FreeDBDisc FreeDBDisc, char *str, int len); 00806 00814 Mb4NonMBTrackList mb4_freedbdisc_get_nonmbtracklist(Mb4FreeDBDisc FreeDBDisc); 00815 00821 void mb4_isrc_delete(Mb4ISRC ISRC); 00822 00831 Mb4ISRC mb4_isrc_clone(Mb4ISRC ISRC); 00832 00842 int mb4_isrc_get_id(Mb4ISRC ISRC, char *str, int len); 00843 00851 Mb4RecordingList mb4_isrc_get_recordinglist(Mb4ISRC ISRC); 00852 00858 void mb4_label_delete(Mb4Label Label); 00859 00868 Mb4Label mb4_label_clone(Mb4Label Label); 00869 00879 int mb4_label_get_id(Mb4Label Label, char *str, int len); 00880 00890 int mb4_label_get_type(Mb4Label Label, char *str, int len); 00891 00901 int mb4_label_get_name(Mb4Label Label, char *str, int len); 00902 00912 int mb4_label_get_sortname(Mb4Label Label, char *str, int len); 00913 00921 int mb4_label_get_labelcode(Mb4Label Label); 00922 00932 int mb4_label_get_disambiguation(Mb4Label Label, char *str, int len); 00933 00943 int mb4_label_get_country(Mb4Label Label, char *str, int len); 00944 00952 Mb4Lifespan mb4_label_get_lifespan(Mb4Label Label); 00953 00961 Mb4AliasList mb4_label_get_aliaslist(Mb4Label Label); 00962 00970 Mb4ReleaseList mb4_label_get_releaselist(Mb4Label Label); 00971 00981 Mb4RelationList mb4_label_get_relationlist(Mb4Label Label) LIBMB4_DEPRECATED; 00982 00990 Mb4RelationListList mb4_label_get_relationlistlist(Mb4Label Label); 00991 00999 Mb4TagList mb4_label_get_taglist(Mb4Label Label); 01000 01008 Mb4UserTagList mb4_label_get_usertaglist(Mb4Label Label); 01009 01017 Mb4Rating mb4_label_get_rating(Mb4Label Label); 01018 01026 Mb4UserRating mb4_label_get_userrating(Mb4Label Label); 01027 01033 void mb4_labelinfo_delete(Mb4LabelInfo LabelInfo); 01034 01043 Mb4LabelInfo mb4_labelinfo_clone(Mb4LabelInfo LabelInfo); 01044 01054 int mb4_labelinfo_get_catalognumber(Mb4LabelInfo LabelInfo, char *str, int len); 01055 01063 Mb4Label mb4_labelinfo_get_label(Mb4LabelInfo LabelInfo); 01064 01070 void mb4_lifespan_delete(Mb4Lifespan Lifespan); 01071 01080 Mb4Lifespan mb4_lifespan_clone(Mb4Lifespan Lifespan); 01081 01091 int mb4_lifespan_get_begin(Mb4Lifespan Lifespan, char *str, int len); 01092 01102 int mb4_lifespan_get_end(Mb4Lifespan Lifespan, char *str, int len); 01103 01109 void mb4_medium_delete(Mb4Medium Medium); 01110 01119 Mb4Medium mb4_medium_clone(Mb4Medium Medium); 01120 01130 int mb4_medium_get_title(Mb4Medium Medium, char *str, int len); 01131 01139 int mb4_medium_get_position(Mb4Medium Medium); 01140 01150 int mb4_medium_get_format(Mb4Medium Medium, char *str, int len); 01151 01159 Mb4DiscList mb4_medium_get_disclist(Mb4Medium Medium); 01160 01168 Mb4TrackList mb4_medium_get_tracklist(Mb4Medium Medium); 01169 01170 /* -------------------------------------------------------------------------- 01171 01172 libmusicbrainz4 - Client library to access MusicBrainz 01173 01174 Copyright (C) 2011 Andrew Hawkins 01175 01176 This file is part of libmusicbrainz4. 01177 01178 This library is free software; you can redistribute it and/or 01179 modify it under the terms of v2 of the GNU Lesser General Public 01180 License as published by the Free Software Foundation. 01181 01182 Flactag is distributed in the hope that it will be useful, 01183 but WITHOUT ANY WARRANTY; without even the implied warranty of 01184 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 01185 Lesser General Public License for more details. 01186 01187 You should have received a copy of the GNU General Public License 01188 along with this library. If not, see <http://www.gnu.org/licenses/>. 01189 01190 $Id$ 01191 01192 ----------------------------------------------------------------------------*/ 01193 01202 unsigned char mb4_medium_contains_discid(Mb4Medium Medium, const char *DiscID); 01203 01204 01210 void mb4_message_delete(Mb4Message Message); 01211 01220 Mb4Message mb4_message_clone(Mb4Message Message); 01221 01231 int mb4_message_get_text(Mb4Message Message, char *str, int len); 01232 01238 void mb4_metadata_delete(Mb4Metadata Metadata); 01239 01248 Mb4Metadata mb4_metadata_clone(Mb4Metadata Metadata); 01249 01259 int mb4_metadata_get_xmlns(Mb4Metadata Metadata, char *str, int len); 01260 01270 int mb4_metadata_get_xmlnsext(Mb4Metadata Metadata, char *str, int len); 01271 01281 int mb4_metadata_get_generator(Mb4Metadata Metadata, char *str, int len); 01282 01292 int mb4_metadata_get_created(Mb4Metadata Metadata, char *str, int len); 01293 01301 Mb4Artist mb4_metadata_get_artist(Mb4Metadata Metadata); 01302 01310 Mb4Release mb4_metadata_get_release(Mb4Metadata Metadata); 01311 01319 Mb4ReleaseGroup mb4_metadata_get_releasegroup(Mb4Metadata Metadata); 01320 01328 Mb4Recording mb4_metadata_get_recording(Mb4Metadata Metadata); 01329 01337 Mb4Label mb4_metadata_get_label(Mb4Metadata Metadata); 01338 01346 Mb4Work mb4_metadata_get_work(Mb4Metadata Metadata); 01347 01355 Mb4PUID mb4_metadata_get_puid(Mb4Metadata Metadata); 01356 01364 Mb4ISRC mb4_metadata_get_isrc(Mb4Metadata Metadata); 01365 01373 Mb4Disc mb4_metadata_get_disc(Mb4Metadata Metadata); 01374 01382 Mb4LabelInfoList mb4_metadata_get_labelinfolist(Mb4Metadata Metadata); 01383 01391 Mb4Rating mb4_metadata_get_rating(Mb4Metadata Metadata); 01392 01400 Mb4UserRating mb4_metadata_get_userrating(Mb4Metadata Metadata); 01401 01409 Mb4Collection mb4_metadata_get_collection(Mb4Metadata Metadata); 01410 01418 Mb4ArtistList mb4_metadata_get_artistlist(Mb4Metadata Metadata); 01419 01427 Mb4ReleaseList mb4_metadata_get_releaselist(Mb4Metadata Metadata); 01428 01436 Mb4ReleaseGroupList mb4_metadata_get_releasegrouplist(Mb4Metadata Metadata); 01437 01445 Mb4RecordingList mb4_metadata_get_recordinglist(Mb4Metadata Metadata); 01446 01454 Mb4LabelList mb4_metadata_get_labellist(Mb4Metadata Metadata); 01455 01463 Mb4WorkList mb4_metadata_get_worklist(Mb4Metadata Metadata); 01464 01472 Mb4ISRCList mb4_metadata_get_isrclist(Mb4Metadata Metadata); 01473 01481 Mb4AnnotationList mb4_metadata_get_annotationlist(Mb4Metadata Metadata); 01482 01490 Mb4CDStubList mb4_metadata_get_cdstublist(Mb4Metadata Metadata); 01491 01499 Mb4FreeDBDiscList mb4_metadata_get_freedbdisclist(Mb4Metadata Metadata); 01500 01508 Mb4TagList mb4_metadata_get_taglist(Mb4Metadata Metadata); 01509 01517 Mb4UserTagList mb4_metadata_get_usertaglist(Mb4Metadata Metadata); 01518 01526 Mb4CollectionList mb4_metadata_get_collectionlist(Mb4Metadata Metadata); 01527 01535 Mb4CDStub mb4_metadata_get_cdstub(Mb4Metadata Metadata); 01536 01544 Mb4Message mb4_metadata_get_message(Mb4Metadata Metadata); 01545 01551 void mb4_namecredit_delete(Mb4NameCredit NameCredit); 01552 01561 Mb4NameCredit mb4_namecredit_clone(Mb4NameCredit NameCredit); 01562 01572 int mb4_namecredit_get_joinphrase(Mb4NameCredit NameCredit, char *str, int len); 01573 01583 int mb4_namecredit_get_name(Mb4NameCredit NameCredit, char *str, int len); 01584 01592 Mb4Artist mb4_namecredit_get_artist(Mb4NameCredit NameCredit); 01593 01599 void mb4_nonmbtrack_delete(Mb4NonMBTrack NonMBTrack); 01600 01609 Mb4NonMBTrack mb4_nonmbtrack_clone(Mb4NonMBTrack NonMBTrack); 01610 01620 int mb4_nonmbtrack_get_title(Mb4NonMBTrack NonMBTrack, char *str, int len); 01621 01631 int mb4_nonmbtrack_get_artist(Mb4NonMBTrack NonMBTrack, char *str, int len); 01632 01640 int mb4_nonmbtrack_get_length(Mb4NonMBTrack NonMBTrack); 01641 01647 void mb4_puid_delete(Mb4PUID PUID); 01648 01657 Mb4PUID mb4_puid_clone(Mb4PUID PUID); 01658 01668 int mb4_puid_get_id(Mb4PUID PUID, char *str, int len); 01669 01677 Mb4RecordingList mb4_puid_get_recordinglist(Mb4PUID PUID); 01678 01684 void mb4_query_delete(Mb4Query Query); 01685 01694 Mb4Query mb4_query_clone(Mb4Query Query); 01695 01703 int mb4_query_get_lasthttpcode(Mb4Query Query); 01704 01714 int mb4_query_get_lasterrormessage(Mb4Query Query, char *str, int len); 01715 01716 /* -------------------------------------------------------------------------- 01717 01718 libmusicbrainz4 - Client library to access MusicBrainz 01719 01720 Copyright (C) 2011 Andrew Hawkins 01721 01722 This file is part of libmusicbrainz4. 01723 01724 This library is free software; you can redistribute it and/or 01725 modify it under the terms of v2 of the GNU Lesser General Public 01726 License as published by the Free Software Foundation. 01727 01728 Flactag is distributed in the hope that it will be useful, 01729 but WITHOUT ANY WARRANTY; without even the implied warranty of 01730 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 01731 Lesser General Public License for more details. 01732 01733 You should have received a copy of the GNU General Public License 01734 along with this library. If not, see <http://www.gnu.org/licenses/>. 01735 01736 $Id$ 01737 01738 ----------------------------------------------------------------------------*/ 01739 01753 Mb4Query mb4_query_new(const char *UserAgent, const char *Server, int Port); 01754 01763 void mb4_query_set_username(Mb4Query Query, const char *UserName); 01764 01773 void mb4_query_set_password(Mb4Query Query, const char *Password); 01774 01783 void mb4_query_set_proxyhost(Mb4Query Query, const char *ProxyHost); 01784 01793 void mb4_query_set_proxyport(Mb4Query Query, int ProxyPort); 01794 01803 void mb4_query_set_proxyusername(Mb4Query Query, const char *ProxyUserName); 01804 01813 void mb4_query_set_proxypassword(Mb4Query Query, const char *ProxyPassword); 01814 01826 Mb4ReleaseList mb4_query_lookup_discid(Mb4Query Query, const char *DiscID); 01827 01839 Mb4Release mb4_query_lookup_release(Mb4Query Query, const char *Release); 01840 01857 Mb4Metadata mb4_query_query(Mb4Query Query, const char *Entity, const char *ID, const char *Resource, int NumParams, char **ParamNames, char **ParamValues); 01858 01871 unsigned char mb4_query_add_collection_entries(Mb4Query Query, const char *Collection, int NumEntries, const char **Entries); 01872 01885 unsigned char mb4_query_delete_collection_entries(Mb4Query Query, const char *Collection, int NumEntries, const char **Entries); 01886 01891 typedef enum 01892 { 01893 eQuery_Success=0, 01894 eQuery_ConnectionError, 01895 eQuery_Timeout, 01896 eQuery_AuthenticationError, 01897 eQuery_FetchError, 01898 eQuery_RequestError, 01899 eQuery_ResourceNotFound 01900 } tQueryResult; 01901 01909 tQueryResult mb4_query_get_lastresult(Mb4Query Query); 01910 01911 01912 01918 void mb4_rating_delete(Mb4Rating Rating); 01919 01928 Mb4Rating mb4_rating_clone(Mb4Rating Rating); 01929 01937 int mb4_rating_get_votescount(Mb4Rating Rating); 01938 01946 double mb4_rating_get_rating(Mb4Rating Rating); 01947 01953 void mb4_recording_delete(Mb4Recording Recording); 01954 01963 Mb4Recording mb4_recording_clone(Mb4Recording Recording); 01964 01974 int mb4_recording_get_id(Mb4Recording Recording, char *str, int len); 01975 01985 int mb4_recording_get_title(Mb4Recording Recording, char *str, int len); 01986 01994 int mb4_recording_get_length(Mb4Recording Recording); 01995 02005 int mb4_recording_get_disambiguation(Mb4Recording Recording, char *str, int len); 02006 02014 Mb4ArtistCredit mb4_recording_get_artistcredit(Mb4Recording Recording); 02015 02023 Mb4ReleaseList mb4_recording_get_releaselist(Mb4Recording Recording); 02024 02032 Mb4PUIDList mb4_recording_get_puidlist(Mb4Recording Recording); 02033 02041 Mb4ISRCList mb4_recording_get_isrclist(Mb4Recording Recording); 02042 02052 Mb4RelationList mb4_recording_get_relationlist(Mb4Recording Recording) LIBMB4_DEPRECATED; 02053 02061 Mb4RelationListList mb4_recording_get_relationlistlist(Mb4Recording Recording); 02062 02070 Mb4TagList mb4_recording_get_taglist(Mb4Recording Recording); 02071 02079 Mb4UserTagList mb4_recording_get_usertaglist(Mb4Recording Recording); 02080 02088 Mb4Rating mb4_recording_get_rating(Mb4Recording Recording); 02089 02097 Mb4UserRating mb4_recording_get_userrating(Mb4Recording Recording); 02098 02104 void mb4_relation_delete(Mb4Relation Relation); 02105 02114 Mb4Relation mb4_relation_clone(Mb4Relation Relation); 02115 02125 int mb4_relation_get_type(Mb4Relation Relation, char *str, int len); 02126 02136 int mb4_relation_get_target(Mb4Relation Relation, char *str, int len); 02137 02147 int mb4_relation_get_direction(Mb4Relation Relation, char *str, int len); 02148 02156 Mb4AttributeList mb4_relation_get_attributelist(Mb4Relation Relation); 02157 02167 int mb4_relation_get_begin(Mb4Relation Relation, char *str, int len); 02168 02178 int mb4_relation_get_end(Mb4Relation Relation, char *str, int len); 02179 02187 Mb4Artist mb4_relation_get_artist(Mb4Relation Relation); 02188 02196 Mb4Release mb4_relation_get_release(Mb4Relation Relation); 02197 02205 Mb4ReleaseGroup mb4_relation_get_releasegroup(Mb4Relation Relation); 02206 02214 Mb4Recording mb4_relation_get_recording(Mb4Relation Relation); 02215 02223 Mb4Label mb4_relation_get_label(Mb4Relation Relation); 02224 02232 Mb4Work mb4_relation_get_work(Mb4Relation Relation); 02233 02239 void mb4_release_delete(Mb4Release Release); 02240 02249 Mb4Release mb4_release_clone(Mb4Release Release); 02250 02260 int mb4_release_get_id(Mb4Release Release, char *str, int len); 02261 02271 int mb4_release_get_title(Mb4Release Release, char *str, int len); 02272 02282 int mb4_release_get_status(Mb4Release Release, char *str, int len); 02283 02293 int mb4_release_get_quality(Mb4Release Release, char *str, int len); 02294 02304 int mb4_release_get_disambiguation(Mb4Release Release, char *str, int len); 02305 02315 int mb4_release_get_packaging(Mb4Release Release, char *str, int len); 02316 02324 Mb4TextRepresentation mb4_release_get_textrepresentation(Mb4Release Release); 02325 02333 Mb4ArtistCredit mb4_release_get_artistcredit(Mb4Release Release); 02334 02342 Mb4ReleaseGroup mb4_release_get_releasegroup(Mb4Release Release); 02343 02353 int mb4_release_get_date(Mb4Release Release, char *str, int len); 02354 02364 int mb4_release_get_country(Mb4Release Release, char *str, int len); 02365 02375 int mb4_release_get_barcode(Mb4Release Release, char *str, int len); 02376 02386 int mb4_release_get_asin(Mb4Release Release, char *str, int len); 02387 02395 Mb4LabelInfoList mb4_release_get_labelinfolist(Mb4Release Release); 02396 02404 Mb4MediumList mb4_release_get_mediumlist(Mb4Release Release); 02405 02415 Mb4RelationList mb4_release_get_relationlist(Mb4Release Release) LIBMB4_DEPRECATED; 02416 02424 Mb4RelationListList mb4_release_get_relationlistlist(Mb4Release Release); 02425 02433 Mb4CollectionList mb4_release_get_collectionlist(Mb4Release Release); 02434 02435 /* -------------------------------------------------------------------------- 02436 02437 libmusicbrainz4 - Client library to access MusicBrainz 02438 02439 Copyright (C) 2011 Andrew Hawkins 02440 02441 This file is part of libmusicbrainz4. 02442 02443 This library is free software; you can redistribute it and/or 02444 modify it under the terms of v2 of the GNU Lesser General Public 02445 License as published by the Free Software Foundation. 02446 02447 Flactag is distributed in the hope that it will be useful, 02448 but WITHOUT ANY WARRANTY; without even the implied warranty of 02449 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 02450 Lesser General Public License for more details. 02451 02452 You should have received a copy of the GNU General Public License 02453 along with this library. If not, see <http://www.gnu.org/licenses/>. 02454 02455 $Id$ 02456 02457 ----------------------------------------------------------------------------*/ 02458 02468 Mb4MediumList mb4_release_media_matching_discid(Mb4Release Release, const char *DiscID); 02469 02470 02471 02477 void mb4_releasegroup_delete(Mb4ReleaseGroup ReleaseGroup); 02478 02487 Mb4ReleaseGroup mb4_releasegroup_clone(Mb4ReleaseGroup ReleaseGroup); 02488 02498 int mb4_releasegroup_get_id(Mb4ReleaseGroup ReleaseGroup, char *str, int len); 02499 02509 int mb4_releasegroup_get_type(Mb4ReleaseGroup ReleaseGroup, char *str, int len); 02510 02520 int mb4_releasegroup_get_title(Mb4ReleaseGroup ReleaseGroup, char *str, int len); 02521 02531 int mb4_releasegroup_get_disambiguation(Mb4ReleaseGroup ReleaseGroup, char *str, int len); 02532 02542 int mb4_releasegroup_get_firstreleasedate(Mb4ReleaseGroup ReleaseGroup, char *str, int len); 02543 02551 Mb4ArtistCredit mb4_releasegroup_get_artistcredit(Mb4ReleaseGroup ReleaseGroup); 02552 02560 Mb4ReleaseList mb4_releasegroup_get_releaselist(Mb4ReleaseGroup ReleaseGroup); 02561 02571 Mb4RelationList mb4_releasegroup_get_relationlist(Mb4ReleaseGroup ReleaseGroup) LIBMB4_DEPRECATED; 02572 02580 Mb4RelationListList mb4_releasegroup_get_relationlistlist(Mb4ReleaseGroup ReleaseGroup); 02581 02589 Mb4TagList mb4_releasegroup_get_taglist(Mb4ReleaseGroup ReleaseGroup); 02590 02598 Mb4UserTagList mb4_releasegroup_get_usertaglist(Mb4ReleaseGroup ReleaseGroup); 02599 02607 Mb4Rating mb4_releasegroup_get_rating(Mb4ReleaseGroup ReleaseGroup); 02608 02616 Mb4UserRating mb4_releasegroup_get_userrating(Mb4ReleaseGroup ReleaseGroup); 02617 02623 void mb4_tag_delete(Mb4Tag Tag); 02624 02633 Mb4Tag mb4_tag_clone(Mb4Tag Tag); 02634 02642 int mb4_tag_get_count(Mb4Tag Tag); 02643 02653 int mb4_tag_get_name(Mb4Tag Tag, char *str, int len); 02654 02660 void mb4_textrepresentation_delete(Mb4TextRepresentation TextRepresentation); 02661 02670 Mb4TextRepresentation mb4_textrepresentation_clone(Mb4TextRepresentation TextRepresentation); 02671 02681 int mb4_textrepresentation_get_language(Mb4TextRepresentation TextRepresentation, char *str, int len); 02682 02692 int mb4_textrepresentation_get_script(Mb4TextRepresentation TextRepresentation, char *str, int len); 02693 02699 void mb4_track_delete(Mb4Track Track); 02700 02709 Mb4Track mb4_track_clone(Mb4Track Track); 02710 02718 int mb4_track_get_position(Mb4Track Track); 02719 02729 int mb4_track_get_title(Mb4Track Track, char *str, int len); 02730 02738 Mb4Recording mb4_track_get_recording(Mb4Track Track); 02739 02747 int mb4_track_get_length(Mb4Track Track); 02748 02756 Mb4ArtistCredit mb4_track_get_artistcredit(Mb4Track Track); 02757 02763 void mb4_userrating_delete(Mb4UserRating UserRating); 02764 02773 Mb4UserRating mb4_userrating_clone(Mb4UserRating UserRating); 02774 02782 int mb4_userrating_get_userrating(Mb4UserRating UserRating); 02783 02789 void mb4_usertag_delete(Mb4UserTag UserTag); 02790 02799 Mb4UserTag mb4_usertag_clone(Mb4UserTag UserTag); 02800 02810 int mb4_usertag_get_name(Mb4UserTag UserTag, char *str, int len); 02811 02817 void mb4_work_delete(Mb4Work Work); 02818 02827 Mb4Work mb4_work_clone(Mb4Work Work); 02828 02838 int mb4_work_get_id(Mb4Work Work, char *str, int len); 02839 02849 int mb4_work_get_type(Mb4Work Work, char *str, int len); 02850 02860 int mb4_work_get_title(Mb4Work Work, char *str, int len); 02861 02869 Mb4ArtistCredit mb4_work_get_artistcredit(Mb4Work Work); 02870 02880 int mb4_work_get_iswc(Mb4Work Work, char *str, int len); 02881 02891 int mb4_work_get_disambiguation(Mb4Work Work, char *str, int len); 02892 02900 Mb4AliasList mb4_work_get_aliaslist(Mb4Work Work); 02901 02911 Mb4RelationList mb4_work_get_relationlist(Mb4Work Work) LIBMB4_DEPRECATED; 02912 02920 Mb4RelationListList mb4_work_get_relationlistlist(Mb4Work Work); 02921 02929 Mb4TagList mb4_work_get_taglist(Mb4Work Work); 02930 02938 Mb4UserTagList mb4_work_get_usertaglist(Mb4Work Work); 02939 02947 Mb4Rating mb4_work_get_rating(Mb4Work Work); 02948 02956 Mb4UserRating mb4_work_get_userrating(Mb4Work Work); 02957 02963 void mb4_alias_list_delete(Mb4AliasList List); 02964 02970 int mb4_alias_list_size(Mb4AliasList List); 02971 02980 Mb4Alias mb4_alias_list_item(Mb4AliasList List, int Item); 02981 02987 int mb4_alias_list_get_count(Mb4AliasList List); 02988 02994 int mb4_alias_list_get_offset(Mb4AliasList List); 02995 03004 Mb4AliasList mb4_alias_list_clone(Mb4AliasList AliasList); 03005 03011 void mb4_annotation_list_delete(Mb4AnnotationList List); 03012 03018 int mb4_annotation_list_size(Mb4AnnotationList List); 03019 03028 Mb4Annotation mb4_annotation_list_item(Mb4AnnotationList List, int Item); 03029 03035 int mb4_annotation_list_get_count(Mb4AnnotationList List); 03036 03042 int mb4_annotation_list_get_offset(Mb4AnnotationList List); 03043 03052 Mb4AnnotationList mb4_annotation_list_clone(Mb4AnnotationList AnnotationList); 03053 03059 void mb4_artist_list_delete(Mb4ArtistList List); 03060 03066 int mb4_artist_list_size(Mb4ArtistList List); 03067 03076 Mb4Artist mb4_artist_list_item(Mb4ArtistList List, int Item); 03077 03083 int mb4_artist_list_get_count(Mb4ArtistList List); 03084 03090 int mb4_artist_list_get_offset(Mb4ArtistList List); 03091 03100 Mb4ArtistList mb4_artist_list_clone(Mb4ArtistList ArtistList); 03101 03107 void mb4_attribute_list_delete(Mb4AttributeList List); 03108 03114 int mb4_attribute_list_size(Mb4AttributeList List); 03115 03124 Mb4Attribute mb4_attribute_list_item(Mb4AttributeList List, int Item); 03125 03131 int mb4_attribute_list_get_count(Mb4AttributeList List); 03132 03138 int mb4_attribute_list_get_offset(Mb4AttributeList List); 03139 03148 Mb4AttributeList mb4_attribute_list_clone(Mb4AttributeList AttributeList); 03149 03155 void mb4_cdstub_list_delete(Mb4CDStubList List); 03156 03162 int mb4_cdstub_list_size(Mb4CDStubList List); 03163 03172 Mb4CDStub mb4_cdstub_list_item(Mb4CDStubList List, int Item); 03173 03179 int mb4_cdstub_list_get_count(Mb4CDStubList List); 03180 03186 int mb4_cdstub_list_get_offset(Mb4CDStubList List); 03187 03196 Mb4CDStubList mb4_cdstub_list_clone(Mb4CDStubList CDStubList); 03197 03203 void mb4_collection_list_delete(Mb4CollectionList List); 03204 03210 int mb4_collection_list_size(Mb4CollectionList List); 03211 03220 Mb4Collection mb4_collection_list_item(Mb4CollectionList List, int Item); 03221 03227 int mb4_collection_list_get_count(Mb4CollectionList List); 03228 03234 int mb4_collection_list_get_offset(Mb4CollectionList List); 03235 03244 Mb4CollectionList mb4_collection_list_clone(Mb4CollectionList CollectionList); 03245 03251 void mb4_disc_list_delete(Mb4DiscList List); 03252 03258 int mb4_disc_list_size(Mb4DiscList List); 03259 03268 Mb4Disc mb4_disc_list_item(Mb4DiscList List, int Item); 03269 03275 int mb4_disc_list_get_count(Mb4DiscList List); 03276 03282 int mb4_disc_list_get_offset(Mb4DiscList List); 03283 03292 Mb4DiscList mb4_disc_list_clone(Mb4DiscList DiscList); 03293 03299 void mb4_freedbdisc_list_delete(Mb4FreeDBDiscList List); 03300 03306 int mb4_freedbdisc_list_size(Mb4FreeDBDiscList List); 03307 03316 Mb4FreeDBDisc mb4_freedbdisc_list_item(Mb4FreeDBDiscList List, int Item); 03317 03323 int mb4_freedbdisc_list_get_count(Mb4FreeDBDiscList List); 03324 03330 int mb4_freedbdisc_list_get_offset(Mb4FreeDBDiscList List); 03331 03340 Mb4FreeDBDiscList mb4_freedbdisc_list_clone(Mb4FreeDBDiscList FreeDBDiscList); 03341 03347 void mb4_isrc_list_delete(Mb4ISRCList List); 03348 03354 int mb4_isrc_list_size(Mb4ISRCList List); 03355 03364 Mb4ISRC mb4_isrc_list_item(Mb4ISRCList List, int Item); 03365 03371 int mb4_isrc_list_get_count(Mb4ISRCList List); 03372 03378 int mb4_isrc_list_get_offset(Mb4ISRCList List); 03379 03388 Mb4ISRCList mb4_isrc_list_clone(Mb4ISRCList ISRCList); 03389 03395 void mb4_label_list_delete(Mb4LabelList List); 03396 03402 int mb4_label_list_size(Mb4LabelList List); 03403 03412 Mb4Label mb4_label_list_item(Mb4LabelList List, int Item); 03413 03419 int mb4_label_list_get_count(Mb4LabelList List); 03420 03426 int mb4_label_list_get_offset(Mb4LabelList List); 03427 03436 Mb4LabelList mb4_label_list_clone(Mb4LabelList LabelList); 03437 03443 void mb4_labelinfo_list_delete(Mb4LabelInfoList List); 03444 03450 int mb4_labelinfo_list_size(Mb4LabelInfoList List); 03451 03460 Mb4LabelInfo mb4_labelinfo_list_item(Mb4LabelInfoList List, int Item); 03461 03467 int mb4_labelinfo_list_get_count(Mb4LabelInfoList List); 03468 03474 int mb4_labelinfo_list_get_offset(Mb4LabelInfoList List); 03475 03484 Mb4LabelInfoList mb4_labelinfo_list_clone(Mb4LabelInfoList LabelInfoList); 03485 03491 void mb4_medium_list_delete(Mb4MediumList List); 03492 03498 int mb4_medium_list_size(Mb4MediumList List); 03499 03508 Mb4Medium mb4_medium_list_item(Mb4MediumList List, int Item); 03509 03515 int mb4_medium_list_get_count(Mb4MediumList List); 03516 03522 int mb4_medium_list_get_offset(Mb4MediumList List); 03523 03532 Mb4MediumList mb4_medium_list_clone(Mb4MediumList MediumList); 03533 03541 int mb4_medium_list_get_trackcount(Mb4MediumList List); 03542 03548 void mb4_namecredit_list_delete(Mb4NameCreditList List); 03549 03555 int mb4_namecredit_list_size(Mb4NameCreditList List); 03556 03565 Mb4NameCredit mb4_namecredit_list_item(Mb4NameCreditList List, int Item); 03566 03572 int mb4_namecredit_list_get_count(Mb4NameCreditList List); 03573 03579 int mb4_namecredit_list_get_offset(Mb4NameCreditList List); 03580 03589 Mb4NameCreditList mb4_namecredit_list_clone(Mb4NameCreditList NameCreditList); 03590 03596 void mb4_nonmbtrack_list_delete(Mb4NonMBTrackList List); 03597 03603 int mb4_nonmbtrack_list_size(Mb4NonMBTrackList List); 03604 03613 Mb4NonMBTrack mb4_nonmbtrack_list_item(Mb4NonMBTrackList List, int Item); 03614 03620 int mb4_nonmbtrack_list_get_count(Mb4NonMBTrackList List); 03621 03627 int mb4_nonmbtrack_list_get_offset(Mb4NonMBTrackList List); 03628 03637 Mb4NonMBTrackList mb4_nonmbtrack_list_clone(Mb4NonMBTrackList NonMBTrackList); 03638 03644 void mb4_puid_list_delete(Mb4PUIDList List); 03645 03651 int mb4_puid_list_size(Mb4PUIDList List); 03652 03661 Mb4PUID mb4_puid_list_item(Mb4PUIDList List, int Item); 03662 03668 int mb4_puid_list_get_count(Mb4PUIDList List); 03669 03675 int mb4_puid_list_get_offset(Mb4PUIDList List); 03676 03685 Mb4PUIDList mb4_puid_list_clone(Mb4PUIDList PUIDList); 03686 03692 void mb4_recording_list_delete(Mb4RecordingList List); 03693 03699 int mb4_recording_list_size(Mb4RecordingList List); 03700 03709 Mb4Recording mb4_recording_list_item(Mb4RecordingList List, int Item); 03710 03716 int mb4_recording_list_get_count(Mb4RecordingList List); 03717 03723 int mb4_recording_list_get_offset(Mb4RecordingList List); 03724 03733 Mb4RecordingList mb4_recording_list_clone(Mb4RecordingList RecordingList); 03734 03740 void mb4_relation_list_delete(Mb4RelationList List); 03741 03747 int mb4_relation_list_size(Mb4RelationList List); 03748 03757 Mb4Relation mb4_relation_list_item(Mb4RelationList List, int Item); 03758 03764 int mb4_relation_list_get_count(Mb4RelationList List); 03765 03771 int mb4_relation_list_get_offset(Mb4RelationList List); 03772 03781 Mb4RelationList mb4_relation_list_clone(Mb4RelationList RelationList); 03782 03792 int mb4_relation_list_get_targettype(Mb4RelationList List, char *str, int len); 03793 03799 void mb4_relationlist_list_delete(Mb4RelationListList List); 03800 03806 int mb4_relationlist_list_size(Mb4RelationListList List); 03807 03816 Mb4RelationList mb4_relationlist_list_item(Mb4RelationListList List, int Item); 03817 03823 int mb4_relationlist_list_get_count(Mb4RelationListList List); 03824 03830 int mb4_relationlist_list_get_offset(Mb4RelationListList List); 03831 03840 Mb4RelationListList mb4_relationlist_list_clone(Mb4RelationListList RelationListList); 03841 03847 void mb4_release_list_delete(Mb4ReleaseList List); 03848 03854 int mb4_release_list_size(Mb4ReleaseList List); 03855 03864 Mb4Release mb4_release_list_item(Mb4ReleaseList List, int Item); 03865 03871 int mb4_release_list_get_count(Mb4ReleaseList List); 03872 03878 int mb4_release_list_get_offset(Mb4ReleaseList List); 03879 03888 Mb4ReleaseList mb4_release_list_clone(Mb4ReleaseList ReleaseList); 03889 03895 void mb4_releasegroup_list_delete(Mb4ReleaseGroupList List); 03896 03902 int mb4_releasegroup_list_size(Mb4ReleaseGroupList List); 03903 03912 Mb4ReleaseGroup mb4_releasegroup_list_item(Mb4ReleaseGroupList List, int Item); 03913 03919 int mb4_releasegroup_list_get_count(Mb4ReleaseGroupList List); 03920 03926 int mb4_releasegroup_list_get_offset(Mb4ReleaseGroupList List); 03927 03936 Mb4ReleaseGroupList mb4_releasegroup_list_clone(Mb4ReleaseGroupList ReleaseGroupList); 03937 03943 void mb4_tag_list_delete(Mb4TagList List); 03944 03950 int mb4_tag_list_size(Mb4TagList List); 03951 03960 Mb4Tag mb4_tag_list_item(Mb4TagList List, int Item); 03961 03967 int mb4_tag_list_get_count(Mb4TagList List); 03968 03974 int mb4_tag_list_get_offset(Mb4TagList List); 03975 03984 Mb4TagList mb4_tag_list_clone(Mb4TagList TagList); 03985 03991 void mb4_track_list_delete(Mb4TrackList List); 03992 03998 int mb4_track_list_size(Mb4TrackList List); 03999 04008 Mb4Track mb4_track_list_item(Mb4TrackList List, int Item); 04009 04015 int mb4_track_list_get_count(Mb4TrackList List); 04016 04022 int mb4_track_list_get_offset(Mb4TrackList List); 04023 04032 Mb4TrackList mb4_track_list_clone(Mb4TrackList TrackList); 04033 04039 void mb4_usertag_list_delete(Mb4UserTagList List); 04040 04046 int mb4_usertag_list_size(Mb4UserTagList List); 04047 04056 Mb4UserTag mb4_usertag_list_item(Mb4UserTagList List, int Item); 04057 04063 int mb4_usertag_list_get_count(Mb4UserTagList List); 04064 04070 int mb4_usertag_list_get_offset(Mb4UserTagList List); 04071 04080 Mb4UserTagList mb4_usertag_list_clone(Mb4UserTagList UserTagList); 04081 04087 void mb4_work_list_delete(Mb4WorkList List); 04088 04094 int mb4_work_list_size(Mb4WorkList List); 04095 04104 Mb4Work mb4_work_list_item(Mb4WorkList List, int Item); 04105 04111 int mb4_work_list_get_count(Mb4WorkList List); 04112 04118 int mb4_work_list_get_offset(Mb4WorkList List); 04119 04128 Mb4WorkList mb4_work_list_clone(Mb4WorkList WorkList); 04129 04130 #ifdef __cplusplus 04131 } 04132 #endif 04133 04134 #endif 04135