Top | ![]() |
![]() |
![]() |
![]() |
All structs / enums / defines of the libglyr API can be found here. You do not need to include this header directly, use glyr/glyr.h
GLYR_ERROR (*DL_callback) (GlyrMemCache *dl
,struct _GlyrQuery *s
);
Typedef'd version of the callback option used by glyr_opt_download()
dl |
The current item you can investigate. Guaranteed to be not NULL. |
|
s |
The GlyrQuery you initially passed to |
#define GLYR_DEFAULT_SUPPORTED_LANGS "en;de;fr;es;it;jp;pl;pt;ru;sv;tr;zh"
#define GLYR_DEFAULT_USERAGENT "libglyr/"GLYR_VERSION_MAJOR"."GLYR_VERSION_MINOR"-"GLYR_VERSION_MICRO" ("GLYR_VERSION_NAME") +https://www.github.com/sahib/glyr"
The normalization levels, that may be applied to artist/album/title.
Default is: GLYR_NORMALIZE_AGGRESSIVE | GLYR_NORMALIZE_ALL
Do no normalization to input artist/album/title. |
||
Do quite some normalization, but don't break stuff. |
||
Do everything under MODERATE, but also remove everythin |
||
Normalize artist field, when set. |
||
Normalize album field, when set. |
||
Normalize title field, when set. |
||
Normalize all fields, when set. |
All errors you can get, via glyr_get()
and the glyr_opt_* calls.
Use glyr_strerror()
to convert them to meaningful strings.
Unknown error |
||
everything is fine |
||
you passed a bad option to glyr_opt_* |
||
Invalid value in glyr_opt_* |
||
you passed an empty struct to glyr_opt_ |
||
No valid provider specified in |
||
settings->type is not valid |
||
Insufficient data supplied; (artist/album/title) missing |
||
If returned by callback, cache wont be added to results |
||
Will stop searching, but still add the current item |
||
Will stop searching, but won't add the current item |
||
Library has not been initialized with |
||
Library was stopped by |
You tell libglyr what metadata you want by choosing one of the below
and set it via glyr_opt_type()
The default value after initializing a query. |
||
Get Coverart. |
||
Get Songtext |
||
Get Live/Promotion/Fanartwork |
||
Get information about this artist |
||
get similar artists |
||
get similar songs |
||
get album reviews |
||
get a tracklist for a specified album |
||
get tags for a certain item |
||
get relations for a certain item |
||
get a list of albums from a certain artist |
||
get guitar tabs for a specified artist/title |
||
get large backdrops (backgrounds) from a certain artist. |
||
Delievers everything (like the 'locale' provider), do not use this. |
Mainly used in the 'type' field of GlyrMemCache. It describes what kind of data the cache holds. As a user of the API you will need this very seldom. libglyr makes internally use of it.
You shouldn't get this |
||
Songtext |
||
Albumreview |
||
Pictures showing a certain band |
||
coverart |
||
Artist bio |
||
Similiar artists |
||
Similar songs |
||
List of albums: each cache containing one name |
||
List of (random) tags: each cache containing one name |
||
Tag associated with the artist |
||
Tag associated with the album |
||
Tag associated with the album |
||
Random relation: each cache containing one link |
||
URL pointing to an image |
||
URL pointing to some text content |
||
List of tracknames: each cache containing one name |
||
Guitartabs |
||
Wallpaper-like artist images |
Bitmasks you can use to determine what fields a certain getter needs.
You can obtain it in the 'reqs' field of GlyrFetcherInfo (retrieved via glyr_info_get()
)