#ifndef SHARED_COURSE_REQUEST_XML_H
#define SHARED_COURSE_REQUEST_XML_H

#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "../xmlparse.h"
#include "../global.h"
#include "shared_survey_string.h"
#include "shared_strtrm.h"
#include "shared_cs_util.h"
#include "shared_lock.h"


typedef struct request_course
{
    char realname[MAX_NAME +1];
    char username[MAX_USERNAME +1];
    char sis_id[MAX_COURSE_ID +1];
    char subdir[MAX_COURSE_SUBDIR + 1];
    char new_id[MAX_COURSE_ID +1];
    char course_title[MAX_COURSE_TITLE +1];
    char course_code[MAX_COURSE_NO +1];
    char course_semester[MAX_SEMESTER +1];
    char timestring[MAX_PATH +1];
    struct request_course *next;
}REQUEST_COURSE;

typedef struct request_course_list
{
    REQUEST_COURSE *head;
    REQUEST_COURSE *current;
}REQUEST_COURSE_LIST;

void  free_request_head(REQUEST_COURSE *head);
void free_request_list( REQUEST_COURSE_LIST *list);

void *
xml_request_course_parser(char *file);

void
get_request_list_filename(char *div, char *file);

#endif

