int laymanAPIAddRepo | ( | LaymanAPI * | l, | |
const char * | repo | |||
) |
Adds an overlay to layman
repo | the name of the repository to add |
int laymanAPIAddRepoList | ( | LaymanAPI * | l, | |
StringList * | repos | |||
) |
Adds a list of overlays to layman
repo | the list of the repositories to add |
LaymanAPI* laymanAPICreate | ( | BareConfig * | config, | |
int | report_error, | |||
int | output | |||
) |
Creates a LaymanAPI object that must be used in all function in this file.
config | a BareConfig object that contains all configuration options. If NULL, the default configuration will be used. | |
report_error | if True, errors reporting on stdout will be activated. | |
output | ? |
int laymanAPIDeleteRepo | ( | LaymanAPI * | l, | |
const char * | repo | |||
) |
Deletes an overlay from layman
repo | the name of the repository to delete |
int laymanAPIDeleteRepoList | ( | LaymanAPI * | l, | |
StringList * | repos | |||
) |
Deletes a list of overlays from layman
repo | the list of the repositories to delete |
int laymanAPIFetchRemoteList | ( | LaymanAPI * | l | ) |
Updates the local overlay list.
OverlayInfo* laymanAPIGetAllInfo | ( | LaymanAPI * | l, | |
const char * | overlay | |||
) |
Get all information from an overlay. This function fills every fields but the text field of the OverlayInfo structure.
overlay | the overlay name to get info from |
int laymanAPIGetAllInfoList | ( | LaymanAPI * | l, | |
StringList * | overlays, | |||
OverlayInfo * | results | |||
) |
Gives a list of OverlayInfo's from the overaly names found in the overlays StringList. results must be allocated and initialized with zeroes.
If an information is unavailable (no owner email for example), the correpsonding field will stay to NULL
This function fills every fields but the text field of the OverlayInfo structure.
overlays | the list of overlays to get information from | |
results | a pointer to a table of OverlayInfo structures |
StringList* laymanAPIGetAvailable | ( | LaymanAPI * | l, | |
int | reload | |||
) |
Returns a list of the available overlays.
l | the LaymanAPI object. | |
reload | if True, reloads the list |
OverlayInfo* laymanAPIGetInfoStr | ( | LaymanAPI * | l, | |
const char * | overlay | |||
) |
Provided for convenience, this function get the information for only 1 overlay.
overlay | the overlay name to get info from |
int laymanAPIGetInfoStrList | ( | LaymanAPI * | l, | |
StringList * | overlays, | |||
OverlayInfo * | results | |||
) |
Gets the information from the overlays given in the StringList overlays. The results are stored in the results table which must be initialized with N structures, N being the number of overlays in the overlays StringList. This function fills the name, text, supported and official fields of the OverlayInfo structure.
overlays | the list of overlays to get information from | |
results | a pointer to a table of OverlayInfo structures |
StringList* laymanAPIGetInstalled | ( | LaymanAPI * | l, | |
int | reload | |||
) |
Returns a list of the installed overlays.
l | the LaymanAPI object. | |
reload | if True, reloads the list |
int laymanAPIIsInstalled | ( | LaymanAPI * | l, | |
const char * | repo | |||
) |
Check if the given string is a valid and installed repository
l | the LaymanAPI object. | |
repo | the repository to be checked. |
int laymanAPIIsRepo | ( | LaymanAPI * | l, | |
const char * | repo | |||
) |
Check if the given string is a valid repository
l | the LaymanAPI object. | |
repo | the repository to be checked. |
int laymanAPISync | ( | LaymanAPI * | l, | |
const char * | overlay, | |||
int | verbose | |||
) |
Syncs an overlay.
overlay | The name of the overlay to sync | |
verbose | if True, the output will be more verbose. |
void overlayInfoFree | ( | OverlayInfo | oi | ) |