/usr/include/musicbrainz3/mb_c.h is in libmusicbrainz3-dev 3.0.2-2.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 | /*
* MusicBrainz -- The Internet music metadatabase
*
* Copyright (C) 2006 Lukas Lalinsky
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* $Id: mb_c.h 9932 2008-07-02 06:48:17Z luks $
*/
#ifndef __MUSICBRAINZ3_MB_C_H__
#define __MUSICBRAINZ3_MB_C_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <musicbrainz3/defines.h>
/* {{{ Typedefs */
typedef void *MbArtist;
typedef void *MbArtistAlias;
typedef void *MbArtistFilter;
typedef void *MbArtistIncludes;
typedef void *MbDisc;
typedef void *MbEntity;
typedef void *MbQuery;
typedef void *MbRelation;
typedef void *MbRelease;
typedef void *MbReleaseEvent;
typedef void *MbReleaseFilter;
typedef void *MbReleaseIncludes;
typedef void *MbResultList;
typedef void *MbTrack;
typedef void *MbTrackFilter;
typedef void *MbTrackIncludes;
typedef void *MbUser;
typedef void *MbUserFilter;
typedef void *MbWebService;
/* }}} */
/* {{{ MusicBrainz::WebService */
/**
* Creates a new instance of MbWebService.
*
* @see MusicBrainz::WebService::WebService
*/
MB_API MbWebService
mb_webservice_new();
/**
* Deletes the MbWebService instance.
*
* @see MusicBrainz::WebService::~WebService
*/
MB_API void
mb_webservice_free(MbWebService webservice);
/**
* @see MusicBrainz::WebService::setHost
*/
MB_API void
mb_webservice_set_host(MbWebService webservice, const char *str);
/**
* @see MusicBrainz::WebService::setPort
*/
MB_API void
mb_webservice_set_port(MbWebService webservice, int port);
/**
* @see MusicBrainz::WebService::setPathPrefix
*/
MB_API void
mb_webservice_set_path_prefix(MbWebService webservice, const char *str);
/**
* @see MusicBrainz::WebService::setUserName
*/
MB_API void
mb_webservice_set_username(MbWebService webservice, const char *str);
/**
* @see MusicBrainz::WebService::setPassword
*/
MB_API void
mb_webservice_set_password(MbWebService webservice, const char *str);
/**
* @see MusicBrainz::WebService::setRealm
*/
MB_API void
mb_webservice_set_realm(MbWebService webservice, const char *str);
/**
* @see MusicBrainz::WebService::setProxyHost
*/
MB_API void
mb_webservice_set_proxy_host(MbWebService webservice, const char *str);
/**
* @see MusicBrainz::WebService::setProxyPort
*/
MB_API void
mb_webservice_set_proxy_port(MbWebService webservice, int port);
/**
* @see MusicBrainz::WebService::setProxyUserName
*/
MB_API void
mb_webservice_set_proxy_username(MbWebService webservice, const char *str);
/**
* @see MusicBrainz::WebService::setProxyPassword
*/
MB_API void
mb_webservice_set_proxy_password(MbWebService webservice, const char *str);
/* }}} */
/* {{{ MusicBrainz::Query */
/**
* Creates a new instance of MbQuery.
*
* @see MusicBrainz::Query::Query
*/
MB_API MbQuery
mb_query_new(MbWebService ws, const char *client_id);
/**
* Deletes the MbQuery instance.
*
* @see MusicBrainz::Query::~Query
*/
MB_API void
mb_query_free(MbQuery query);
/**
* Returns an artist.
*
* @see MusicBrainz::Query::getArtistById
*/
MB_API MbArtist
mb_query_get_artist_by_id(MbQuery query, const char *id, MbArtistIncludes inc);
/**
* Returns an release.
*
* @see MusicBrainz::Query::getReleaseById
*/
MB_API MbRelease
mb_query_get_release_by_id(MbQuery query, const char *id, MbReleaseIncludes inc);
/**
* Returns an track.
*
* @see MusicBrainz::Query::getTrackById
*/
MB_API MbTrack
mb_query_get_track_by_id(MbQuery query, const char *id, MbTrackIncludes inc);
/**
* Returns information about a MusicBrainz user.
*
* @see MusicBrainz::Query::getUserByName
*/
MB_API MbUser
mb_query_get_user_by_name(MbQuery query, const char *name);
/* }}} */
MB_API void
mb_result_list_free(MbResultList list);
MB_API int
mb_result_list_get_size(MbResultList list);
MB_API int
mb_result_list_get_score(MbResultList list, int index);
MB_API MbArtist
mb_result_list_get_artist(MbResultList list, int index);
MB_API MbRelease
mb_result_list_get_release(MbResultList list, int index);
MB_API MbTrack
mb_result_list_get_track(MbResultList list, int index);
MB_API MbResultList
mb_query_get_artists(MbQuery query, MbArtistFilter flt);
MB_API MbResultList
mb_query_get_releases(MbQuery query, MbReleaseFilter flt);
MB_API MbResultList
mb_query_get_tracks(MbQuery query, MbTrackFilter flt);
/* {{{ MusicBrainz::Artist */
/**
* Deletes the MbArtist instance.
*/
MB_API void
mb_artist_free(MbArtist artist);
/**
* Returns the artist's ID.
*
* @see MusicBrainz::Artist::getId
*/
MB_API void
mb_artist_get_id(MbArtist artist, char *str, int len);
/**
* Returns the artist's type.
*
* @see MusicBrainz::Artist::getType
*/
MB_API void
mb_artist_get_type(MbArtist artist, char *str, int len);
/**
* Returns the artist's name.
*
* @see MusicBrainz::Artist::getName
*/
MB_API void
mb_artist_get_name(MbArtist artist, char *str, int len);
/**
* Returns the artist's sort name.
*
* @see MusicBrainz::Artist::getSortName
*/
MB_API void
mb_artist_get_sortname(MbArtist artist, char *str, int len);
/**
* Returns the disambiguation attribute.
*
* @see MusicBrainz::Artist::getDisambiguation
*/
MB_API void
mb_artist_get_disambiguation(MbArtist artist, char *str, int len);
/**
* Returns a unique artist name (using disambiguation).
*
* @see MusicBrainz::Artist::getUniqueName
*/
MB_API void
mb_artist_get_unique_name(MbArtist artist, char *str, int len);
/**
* Returns the birth/foundation date.
*
* @see MusicBrainz::Artist::getBeginDate
*/
MB_API void
mb_artist_get_begin_date(MbArtist artist, char *str, int len);
/**
* Returns the death/dissolving date.
*
* @see MusicBrainz::Artist::getEndDate
*/
MB_API void
mb_artist_get_end_date(MbArtist artist, char *str, int len);
/**
* Returns number of aliases.
*
* @see MusicBrainz::Artist::getNumAliases
*/
MB_API int
mb_artist_get_num_aliases(MbArtist artist);
/**
* Returns an alias specified by index.
*
* @see MusicBrainz::Artist::getGetAlias
*/
MB_API MbArtistAlias
mb_artist_get_alias(MbArtist artist, int index);
/**
* Returns number of releases.
*
* @see MusicBrainz::Artist::getNumReleases
*/
MB_API int
mb_artist_get_num_releases(MbArtist artist);
/**
* Returns an release specified by index.
*
* @see MusicBrainz::Artist::getGetRelease
*/
MB_API MbRelease
mb_artist_get_release(MbArtist artist, int index);
/**
* Returns the offset of the release list.
*
* @see MusicBrainz::Artist::getReleasesOffset
*/
MB_API int
mb_artist_get_releases_offset(MbArtist artist);
/**
* Returns the number of releases on this artist.
*
* @see MusicBrainz::Artist::getReleasesCount
*/
MB_API int
mb_artist_get_releases_count(MbArtist artist);
/**
* Returns number of relations.
*
* @see MusicBrainz::Artist::getNumRelations
*/
MB_API int
mb_artist_get_num_relations(MbArtist artist);
/**
* Returns a relation specified by index.
*
* @see MusicBrainz::Artist::getRelation
*/
MB_API MbRelation
mb_artist_get_relation(MbArtist artist, int index);
/* }}} */
/* {{{ MusicBrainz::Release */
/**
* Deletes the MbRelease instance.
*/
MB_API void
mb_release_free(MbRelease release);
/**
* Returns the release's ID.
*
* @see MusicBrainz::Release::getId
*/
MB_API void
mb_release_get_id(MbRelease release, char *str, int len);
/**
* Returns the release's title.
*
* @see MusicBrainz::Release::getTitle
*/
MB_API void
mb_release_get_title(MbRelease release, char *str, int len);
/**
* Returns the language used in release and track titles.
*
* @see MusicBrainz::Release::getTextLanguage
*/
MB_API void
mb_release_get_text_language(MbRelease release, char *str, int len);
/**
* Returns the script used in release and track titles.
*
* @see MusicBrainz::Release::getTextScript
*/
MB_API void
mb_release_get_text_script(MbRelease release, char *str, int len);
/**
* Returns the Amazon shop identifier (ASIN).
*
* @see MusicBrainz::Release::getAsin
*/
MB_API void
mb_release_get_asin(MbRelease release, char *str, int len);
/**
* Returns the artist.
*
* @see MusicBrainz::Release::getArtist
*/
MB_API MbArtist
mb_release_get_artist(MbRelease release);
/**
* Returns the offset of the track list.
*
* @see MusicBrainz::Release::getTracksOffset
*/
MB_API int
mb_release_get_tracks_offset(MbRelease release);
/**
* Returns the number of tracks on this release.
*
* @see MusicBrainz::Release::getTracksCount
*/
MB_API int
mb_release_get_tracks_count(MbRelease release);
/**
* Returns number of relations.
*
* @see MusicBrainz::Release::getNumRelations
*/
MB_API int
mb_release_get_num_relations(MbRelease release);
/**
* Returns a relation specified by index.
*
* @see MusicBrainz::Release::getRelation
*/
MB_API MbRelation
mb_release_get_relation(MbRelease release, int index);
/**
* Returns number of tracks.
*
* @see MusicBrainz::Release::getNumTracks
*/
MB_API int
mb_release_get_num_tracks(MbRelease release);
/**
* Returns a track specified by index.
*
* @see MusicBrainz::Release::getTrack
*/
MB_API MbTrack
mb_release_get_track(MbRelease release, int index);
/**
* Returns number of discs.
*
* @see MusicBrainz::Release::getNumDiscs
*/
MB_API int
mb_release_get_num_discs(MbRelease release);
/**
* Returns a disc specified by index.
*
* @see MusicBrainz::Release::getDisc
*/
MB_API MbDisc
mb_release_get_disc(MbRelease release, int index);
/**
* Returns number of release events.
*
* @see MusicBrainz::Release::getNumReleaseEvents
*/
MB_API int
mb_release_get_num_release_events(MbRelease release);
/**
* Returns a release event specified by index.
*
* @see MusicBrainz::Release::getReleaseEvent
*/
MB_API MbReleaseEvent
mb_release_get_release_event(MbRelease release, int index);
/**
* Returns number of types.
*
* @see MusicBrainz::Release::getNumTypes
*/
MB_API int
mb_release_get_num_types(MbRelease release);
/**
* Returns a type specified by index.
*
* @see MusicBrainz::Release::getType
*/
MB_API void
mb_release_get_type(MbRelease release, int index, char *str, int len);
/* }}} */
/* {{{ MusicBrainz::Track */
/**
* Deletes the MbTrack instance.
*/
MB_API void
mb_track_free(MbTrack track);
/**
* Returns the track's ID.
*
* @see MusicBrainz::Track::getId
*/
MB_API void
mb_track_get_id(MbTrack track, char *str, int len);
/**
* Returns the track's title.
*
* @see MusicBrainz::Track::getTitle
*/
MB_API void
mb_track_get_title(MbTrack track, char *str, int len);
/**
* Returns the track's duration.
*
* @see MusicBrainz::Track::getDuration
*/
MB_API int
mb_track_get_duration(MbTrack track);
/**
* Returns number of relations.
*
* @see MusicBrainz::Track::getNumRelations
*/
MB_API int
mb_track_get_num_relations(MbTrack track);
/**
* Returns a relation specified by index.
*
* @see MusicBrainz::Track::getRelation
*/
MB_API MbRelation
mb_track_get_relation(MbTrack track, int index);
/**
* Returns the artist.
*
* @see MusicBrainz::Track::getArtist
*/
MB_API MbArtist
mb_track_get_artist(MbTrack track);
/* }}} */
/* {{{ MusicBrainz::ArtistAlias */
/**
* Returns the alias.
*
* @see MusicBrainz::ArtistAlias::getValue
*/
MB_API void
mb_artist_alias_get_value(MbArtistAlias alias, char *str, int len);
/**
* Returns the alias type.
*
* @see MusicBrainz::ArtistAlias::getType
*/
MB_API void
mb_artist_alias_get_type(MbArtistAlias alias, char *str, int len);
/**
* Returns the alias script.
*
* @see MusicBrainz::ArtistAlias::getScript
*/
MB_API void
mb_artist_alias_get_script(MbArtistAlias alias, char *str, int len);
/* }}} */
/* {{{ MusicBrainz::User */
/**
* Deletes the MbUsers instance.
*/
MB_API void
mb_user_free(MbUser user);
/**
* Returns the user name.
*
* @see MusicBrainz::User::getName
*/
MB_API void
mb_user_get_name(MbUser user, char *str, int len);
/**
* Returns true if a nag screen should be displayed to the user.
*
* @see MusicBrainz::User::getShowNag
*/
MB_API int
mb_user_get_show_nag(MbUser user);
/**
* Returns number of types.
*
* @see MusicBrainz::User::getNumTypes
*/
MB_API int
mb_user_get_num_types(MbUser user);
/**
* Returns a type specified by index.
*
* @see MusicBrainz::User::getType
*/
MB_API void
mb_user_get_type(MbUser user, int index, char *str, int len);
/* }}} */
/* {{{ MusicBrainz::ArtistIncludes */
MB_API MbArtistIncludes
mb_artist_includes_new();
MB_API void
mb_artist_includes_free(MbArtistIncludes inc);
MB_API MbArtistIncludes
mb_artist_includes_aliases(MbArtistIncludes inc);
MB_API MbArtistIncludes
mb_artist_includes_releases(MbArtistIncludes inc, const char *type);
MB_API MbArtistIncludes
mb_artist_includes_va_releases(MbArtistIncludes inc, const char *type);
MB_API MbArtistIncludes
mb_artist_includes_artist_relations(MbArtistIncludes inc);
MB_API MbArtistIncludes
mb_artist_includes_release_relations(MbArtistIncludes inc);
MB_API MbArtistIncludes
mb_artist_includes_track_relations(MbArtistIncludes inc);
MB_API MbArtistIncludes
mb_artist_includes_url_relations(MbArtistIncludes inc);
MB_API MbArtistIncludes
mb_artist_includes_release_events(MbArtistIncludes inc);
/* }}} */
/* {{{ MusicBrainz::ReleaseIncludes */
MB_API MbReleaseIncludes
mb_release_includes_new();
MB_API void
mb_release_includes_free(MbReleaseIncludes inc);
MB_API MbReleaseIncludes
mb_release_includes_artist(MbReleaseIncludes inc);
MB_API MbReleaseIncludes
mb_release_includes_counts(MbReleaseIncludes inc);
MB_API MbReleaseIncludes
mb_release_includes_release_events(MbReleaseIncludes inc);
MB_API MbReleaseIncludes
mb_release_includes_discs(MbReleaseIncludes inc);
MB_API MbReleaseIncludes
mb_release_includes_tracks(MbReleaseIncludes inc);
MB_API MbReleaseIncludes
mb_release_includes_artist_relations(MbReleaseIncludes inc);
MB_API MbReleaseIncludes
mb_release_includes_release_relations(MbReleaseIncludes inc);
MB_API MbReleaseIncludes
mb_release_includes_track_relations(MbReleaseIncludes inc);
MB_API MbReleaseIncludes
mb_release_includes_url_relations(MbReleaseIncludes inc);
/* }}} */
/* {{{ MusicBrainz::TrackIncludes */
MB_API MbTrackIncludes
mb_track_includes_new();
MB_API void
mb_track_includes_free(MbArtistIncludes inc);
MB_API MbTrackIncludes
mb_track_includes_artist(MbArtistIncludes inc);
MB_API MbTrackIncludes
mb_track_includes_releases(MbArtistIncludes inc);
MB_API MbTrackIncludes
mb_track_includes_puids(MbArtistIncludes inc);
MB_API MbTrackIncludes
mb_track_includes_artist_relations(MbArtistIncludes inc);
MB_API MbTrackIncludes
mb_track_includes_release_relations(MbTrackIncludes inc);
MB_API MbTrackIncludes
mb_track_includes_track_relations(MbTrackIncludes inc);
MB_API MbTrackIncludes
mb_track_includes_url_relations(MbTrackIncludes inc);
/* }}} */
/* {{{ MusicBrainz::MbArtistFilter */
MB_API MbArtistFilter
mb_artist_filter_new();
MB_API void
mb_artist_filter_free(MbArtistFilter flt);
MB_API MbArtistFilter
mb_artist_filter_name(MbArtistFilter flt, const char *value);
MB_API MbArtistFilter
mb_artist_filter_limit(MbArtistFilter flt, int value);
/* }}} */
/* {{{ MusicBrainz::MbReleaseFilter */
MB_API MbReleaseFilter
mb_release_filter_new();
MB_API void
mb_release_filter_free(MbReleaseFilter flt);
MB_API MbReleaseFilter
mb_release_filter_title(MbReleaseFilter flt, const char *value);
MB_API MbReleaseFilter
mb_release_filter_disc_id(MbReleaseFilter flt, const char *value);
MB_API MbReleaseFilter
mb_release_filter_release_type(MbReleaseFilter flt, const char *value);
MB_API MbReleaseFilter
mb_release_filter_artist_name(MbReleaseFilter flt, const char *value);
MB_API MbReleaseFilter
mb_release_filter_artist_id(MbReleaseFilter flt, const char *value);
MB_API MbReleaseFilter
mb_release_filter_limit(MbReleaseFilter flt, int value);
/* }}} */
/* {{{ MusicBrainz::MbTrackFilter */
MB_API MbTrackFilter
mb_track_filter_new();
MB_API void
mb_track_filter_free(MbTrackFilter flt);
MB_API MbTrackFilter
mb_track_filter_title(MbTrackFilter flt, const char *value);
MB_API MbTrackFilter
mb_track_filter_artist_name(MbTrackFilter flt, const char *value);
MB_API MbTrackFilter
mb_track_filter_artist_id(MbTrackFilter flt, const char *value);
MB_API MbTrackFilter
mb_track_filter_release_title(MbTrackFilter flt, const char *value);
MB_API MbTrackFilter
mb_track_filter_release_id(MbTrackFilter flt, const char *value);
MB_API MbTrackFilter
mb_track_filter_duration(MbTrackFilter flt, int value);
MB_API MbTrackFilter
mb_track_filter_puid(MbTrackFilter flt, const char *value);
MB_API MbTrackFilter
mb_track_filter_limit(MbTrackFilter flt, int value);
/* }}} */
/* {{{ MusicBrainz::MbUserFilter */
MB_API MbUserFilter
mb_user_filter_new();
MB_API void
mb_user_filter_free(MbUserFilter flt);
MB_API MbUserFilter
mb_user_filter_name(MbUserFilter flt, const char *value);
/* }}} */
/* {{{ MusicBrainz::ArtistAlias */
/**
* Returns the country a release took place.
*
* @see MusicBrainz::ReleaseEvent::getCountry
*/
MB_API void
mb_release_event_get_country(MbReleaseEvent releaseEvent, char *str, int len);
/**
* Returns the date a release took place.
*
* @see MusicBrainz::ReleaseEvent::getDate
*/
MB_API void
mb_release_event_get_date(MbReleaseEvent releaseEvent, char *str, int len);
/* }}} */
/* {{{ MusicBrainz::Relation */
/**
* Returns this relation's type.
*
* @see MusicBrainz::Relation::getType
*/
MB_API void
mb_relation_get_type(MbRelation relation, char *str, int len);
/**
* Returns the target's ID.
*
* @see MusicBrainz::Relation::getTargetId
*/
MB_API void
mb_relation_get_target_id(MbRelation relation, char *str, int len);
/**
* Returns the target's type.
*
* @see MusicBrainz::Relation::getTargetType
*/
MB_API void
mb_relation_get_target_type(MbRelation relation, char *str, int len);
/**
* Returns the begin date.
*
* @see MusicBrainz::Relation::getBeginDate
*/
MB_API void
mb_relation_get_begin_date(MbRelation relation, char *str, int len);
/**
* Returns the end date.
*
* @see MusicBrainz::Relation::getEndDate
*/
MB_API void
mb_relation_get_end_date(MbRelation relation, char *str, int len);
/**
* Returns the reading direction.
*
* @see MusicBrainz::Relation::getDirection
*/
MB_API int
mb_relation_get_direction(MbRelation relation);
/**
* Returns this relation's target object.
*
* @see MusicBrainz::Relation::getTarget
*/
MB_API MbEntity
mb_relation_get_target(MbRelation relation);
/**
* Returns number of attributes.
*
* @see MusicBrainz::Relation::getNumAttributes
*/
MB_API int
mb_relation_get_num_attributes(MbRelation relation);
/**
* Returns a attribute specified by index.
*
* @see MusicBrainz::Relation::getAttribute
*/
MB_API void
mb_relation_get_attribute(MbRelation relation, int index, char *str, int len);
/* }}} */
/* {{{ MusicBrainz::Disc */
/**
* Returns the MusicBrainz DiscID.
*
* @see MusicBrainz::Disc::getId
*/
MB_API void
mb_disc_get_id(MbDisc disc, char *str, int len);
/**
* Returns the length of the disc in sectors.
*
* @see MusicBrainz::Disc::getSectors
*/
MB_API int
mb_disc_get_sectors(MbDisc disc);
/**
* Returns the number of the first track on this disc.
*
* @see MusicBrainz::Disc::getFirstTrackNum
*/
MB_API int
mb_disc_get_first_track_num(MbDisc disc);
/**
* Returns the number of the last track on this disc.
*
* @see MusicBrainz::Disc::getLastTrackNum
*/
MB_API int
mb_disc_get_last_track_num(MbDisc disc);
/**
* Reads an Audio CD in the disc drive.
*
* @see MusicBrainz::readDisc
*/
MB_API MbDisc
mb_read_disc(const char *device_name);
/**
* Returns a URL for adding a disc to the MusicBrainz database.
*
* @see MusicBrainz::getSubmissionUrl
*/
MB_API void
mb_get_submission_url(MbDisc disc, const char *host, int port, char *str, int len);
/* }}} */
#ifdef __cplusplus
}
#endif
#endif
|