#ifndef SHARED_CENTRAL_USER_H
#define SHARED_CENTRAL_USER_H

typedef enum user_status {NEW_USER, EXISTING_USER, CONFLICT, ERROR} USER_STATUS;

void get_central_user_realname (const char *username, char *realname);
void get_central_user_info (const char *username, SESSION *user, int set_capture_flag);
USER_STATUS central_user_status ( const char *username, const char *id);
int central_username_exists ( const char *username);
int update_central_course_file( const char *username,
                                       const char *crs);


USER_STATUS check_central_username ( const char *username, const char *id);



int create_central_letter_dir (char letter);
int create_central_user_dir(const  char *username);
int write_central_id_file (const char *realname, const char *username,  const char *id);
int add_course(const  char *username,   const char *crs);




#endif


