nntpgrab_plugin_par2.h File Reference

#include "nntpgrab_plugin_base.h"
#include "collections.h"

Go to the source code of this file.


Data Structures

struct   _plugin_par2_imported_funcs

Typedefs

typedef G_BEGIN_DECLS struct
_plugin_par2_imported_funcs 
PluginPar2ImportedFuncs

Functions

gboolean  nntpgrab_plugin_par2_initialize (PluginPar2ImportedFuncs funcs, char **errmsg)
  Initialize the plugin.
void  nntpgrab_plugin_par2_destroy (void)
  Destroy the plugin.
int  nntpgrab_plugin_par2_get_version (void)
  Return the API version of the plugin.
gboolean  nntpgrab_plugin_par2_load_verification_packet (const char *filename, PAR2Set **par2set)
  Try to read any PAR2 verification data from the given file.
gboolean  nntpgrab_plugin_par2_repair_files (const char *directory, const char *par2filename)
  Repair the files using PAR2.

Typedef Documentation

typedef G_BEGIN_DECLS struct _plugin_par2_imported_funcs PluginPar2ImportedFuncs


Function Documentation

void nntpgrab_plugin_par2_destroy ( void   ) 

Destroy the plugin.

int nntpgrab_plugin_par2_get_version ( void   ) 

Return the API version of the plugin.

This is used to verify that the plugin is compatible with the interface the NNTPGrab Core expects

Returns:
NNTPGRAB_PLUGIN_API_VERSION

gboolean nntpgrab_plugin_par2_initialize ( PluginPar2ImportedFuncs  funcs,
char **  errmsg  
)

Initialize the plugin.

Returns:
TRUE when the initialization was successfull

gboolean nntpgrab_plugin_par2_load_verification_packet ( const char *  filename,
PAR2Set **  par2set  
)

Try to read any PAR2 verification data from the given file.

Returns:
TRUE when PAR2 recovery data has been successfully read

gboolean nntpgrab_plugin_par2_repair_files ( const char *  directory,
const char *  par2filename  
)

Repair the files using PAR2.

Returns:
TRUE on success


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