2012-08-09 13:15:30 -07:00
|
|
|
#ifndef ENTRANCE_H_
|
|
|
|
#define ENTRANCE_H_
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include <config.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include <Elementary.h>
|
|
|
|
|
2013-09-03 11:08:37 -07:00
|
|
|
#include "../event/entrance_event.h"
|
2012-08-09 13:15:30 -07:00
|
|
|
#include "entrance_gui.h"
|
2013-09-03 11:08:37 -07:00
|
|
|
#include "entrance_conf.h"
|
2012-08-09 13:15:30 -07:00
|
|
|
#include "entrance_connect.h"
|
|
|
|
#include "entrance_client.h"
|
|
|
|
#include "entrance_gui.h"
|
2012-09-03 15:56:53 -07:00
|
|
|
#include "entrance_fill.h"
|
2013-09-03 11:08:37 -07:00
|
|
|
#include "entrance_login.h"
|
2012-08-09 13:15:30 -07:00
|
|
|
|
2013-09-03 11:08:37 -07:00
|
|
|
#define PT(f, x...) \
|
2012-09-11 12:52:26 -07:00
|
|
|
do \
|
|
|
|
{ \
|
|
|
|
current_time = time(NULL); \
|
|
|
|
local_time = localtime(¤t_time); \
|
|
|
|
memset(entrance_time_d, 0, sizeof(entrance_time_d)); \
|
|
|
|
strftime(entrance_time_d, sizeof(entrance_time_d), \
|
|
|
|
"%b %_2d %T", local_time); \
|
2013-09-03 11:08:37 -07:00
|
|
|
fprintf(stderr, "(%s) "PACKAGE"_client: "f, entrance_time_d, ##x); \
|
2012-09-11 12:52:26 -07:00
|
|
|
} while (0)
|
|
|
|
|
|
|
|
extern time_t current_time;
|
|
|
|
extern struct tm *local_time;
|
|
|
|
extern char entrance_time_d[4096];
|
|
|
|
|
2014-01-08 15:04:44 -08:00
|
|
|
int entrance_client_main(void);
|
2012-08-09 13:15:30 -07:00
|
|
|
|
|
|
|
#endif /* ENTRANCE_H_ */
|