Back to index

nordugrid-arc-nox  1.1.0~rc6
conf_file.h
Go to the documentation of this file.
00001 #ifndef __GM_CONFIG_FILE_H__
00002 #define __GM_CONFIG_FILE_H__
00003 
00004 #include <string>
00005 
00006 #include <arc/XMLNode.h>
00007 
00008 #include "../jobs/users.h"
00009 #include "../jobs/states.h"
00010 #include "../log/job_log.h"
00011 #include "../conf/daemon.h"
00012 
00013 extern JobLog job_log;
00014 
00015 /*
00016   Functionality:
00017     Reads configuration file and creates list of users serviced by
00018     grid-manager.
00019   Accepts:
00020     my_uid - uid of user, owner of the grid-manager process. If it is
00021       0 (root), all users mentioned in configuration will be put into
00022       'users'. Otherwise only matching user.
00023     my_username - username of that user.
00024   Returns:
00025     users - list of users to service.
00026     my_user - special user to run special helper programs (see 
00027       configuration template).
00028 */
00029 bool configure_serviced_users(JobUsers &users,uid_t my_uid,const std::string &my_username,JobUser &my_user,Daemon* daemon = NULL);
00030 bool configure_serviced_users(Arc::XMLNode cfg,JobUsers &users,uid_t my_uid,const std::string &my_username,JobUser &my_user);
00031 bool print_serviced_users(const JobUsers &users);
00032  
00033 #endif // __GM_CONFIG_FILE_H__