/*  This file is part of lsnet.
    Copyright (C) 2009-2010  Sterling Pickens
    Lsnet is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Lsnet is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with lsnet.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef HOMEDIR_H
#define HOMEDIR_H 1

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <malloc.h>
#include <errno.h>
#include "errors.h"

extern int errno;


struct log_data{
	char *homedir;
        char *conf_file;
	char *web_dir;
        char *cpu_log;
        char *mem_log;
        char *net_log;
        char *cpu_lock;
        char *mem_lock;
        char *net_lock;
};


//extern struct log_data;
//extern struct global_strs;
//extern int using_alt_conf;


void Aloc_homedir_globals(void);
void Homedir(void);

#endif
