#ifndef SOURCES_H #define SOURCES_H #include #include #include #include #include #include #include #include #include "zentific/utility.h" #include "zentific/adts.h" #include "Zentific-types.h" /** * Loads all sources and calls their initialization scripts. Returns a list of zJobSource * data structures to be used in fetch and update operations. * * Each source also has an option to provide a list of shell functions to execute as * shell job types. Each of these allowed job types will be added to the given * shellJobTypes list. */ zList *z_InitSources(); /** * Unloads all sources via their uninit functions */ int z_UninitSources(zList *sources); /** * Provides an interface to talk to all of the sources and add a bunch of new jobs to the provided job list. * * The second parameter is 0 if we are making a normal call, or 1 if we are making an initialization call * and want to grab all of the jobs in table. */ int z_FetchJobs(zList *jobSources, zList *jobList, int fetchAll); /** * This function saves a job back to the source that it came from. It commits all information including * status and/or return codes. */ int z_SaveJob(zJob *job); #endif // SOURCES_H