nzbcreator.c File Reference

#include
#include
#include
#include "nntpgrab_utils.h"
#include "nntpgrab_types.h"

Defines

#define  URI   "https://www.nntpgrab.nl/nzbcreator/search.php"

Functions

void  nntpgrab_utils_nzbcreator_free_groups (NGList *groups)
  Free the list of usenet groups which are indexed by the NZBCreator service.
NGList *  nntpgrab_utils_nzbcreator_get_all_groups (char **errmsg)
  Retrieve a list of all the usenet groups which are indexed by the NZBCreator service.
void  nntpgrab_utils_nzbcreator_free_result (NZBCreatorSearchResult *result)
  Free the NZBCreator search results.
NZBCreatorSearchResult *  nntpgrab_utils_nzbcreator_perform_search (NZBCreatorSearchOpts opts, char **errmsg)
  Perform a search using the NZBCreator service.
char *  nntpgrab_utils_nzbcreator_generate_NZB (NGList *file_ids, char **errmsg)
  Generate a NZB file based on a list of file ID's.

Define Documentation

#define URI   "https://www.nntpgrab.nl/nzbcreator/search.php"


Function Documentation

void nntpgrab_utils_nzbcreator_free_groups ( NGList *  groups  ) 

Free the list of usenet groups which are indexed by the NZBCreator service.

Parameters:
groups  A list of all the indexed usenet groups

void nntpgrab_utils_nzbcreator_free_result ( NZBCreatorSearchResult *  result  ) 

Free the NZBCreator search results.

Parameters:
result  The NZBCreator search results

char* nntpgrab_utils_nzbcreator_generate_NZB ( NGList *  file_ids,
char **  errmsg  
)

Generate a NZB file based on a list of file ID's.

Parameters:
file_ids  A list containing file ID's of all the files which needs to be retrieved
errmsg  Pointer to a char*. If an errors occurs, the reason will be placed in this field. Needs to be freed using ngfree(). Can be NULL to ignore errors
Returns:
The contents of the NZB file containing all the details of the given file_ids. Needs to be free'd using ng_free(). If an error occurs, the value NULL will be returned and errmsg will be set

NGList* nntpgrab_utils_nzbcreator_get_all_groups ( char **  errmsg  ) 

Retrieve a list of all the usenet groups which are indexed by the NZBCreator service.

Parameters:
errmsg  Pointer to a char*. If an errors occurs, the reason will be placed in this field. Needs to be freed using ngfree(). Can be NULL to ignore errors
Returns:
A list of all the indexed usenet groups. Needs to be free'd using nntpgrab_utils_nzbcreator_free_groups(). If an error occures, the value NULL will be returned and errmsg will be set

NZBCreatorSearchResult* nntpgrab_utils_nzbcreator_perform_search ( NZBCreatorSearchOpts  opts,
char **  errmsg  
)

Perform a search using the NZBCreator service.

Parameters:
opts  A structure containing information about the requested search
errmsg  Pointer to a char*. If an errors occurs, the reason will be placed in this field. Needs to be freed using ngfree(). Can be NULL to ignore errors
Returns:
A structure containing the search results. Needs to be free'd using nntpgrab_utils_nzbcreator_free_result(). If an error occurs, the value NULL will be returned and errmsg will be set


Generated on Thu May 21 21:25:05 2009 for NNTPGrab by  1.5.4