working...
git-svn-id: file:///home/jan/tmp/wetterstation/trunk@71 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
parent
3b26d8cdb9
commit
8a06a29dea
|
|
@ -71,6 +71,7 @@ int read_str(const char *line, void *arg){
|
||||||
int read_int(const char *line, void *arg){
|
int read_int(const char *line, void *arg){
|
||||||
int *dest = arg;
|
int *dest = arg;
|
||||||
*dest = atoi(line);
|
*dest = atoi(line);
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* lesen, ob id's aus der Datenbank gelesen werden sollen oder nicht */
|
/* lesen, ob id's aus der Datenbank gelesen werden sollen oder nicht */
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,9 @@ static int read_time(const char *line, void *arg){
|
||||||
mult = 1;
|
mult = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
*dest = atol(line) * mult;
|
*dest = atol(line) * mult;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,8 +31,10 @@
|
||||||
#include "image_config.h"
|
#include "image_config.h"
|
||||||
|
|
||||||
|
|
||||||
|
/* Optionen des Bildes */
|
||||||
image_cfg img_cfg;
|
image_cfg img_cfg;
|
||||||
|
|
||||||
|
/* Handelt ein Bild */
|
||||||
void process_image_cfg(char *image_cfg_file){
|
void process_image_cfg(char *image_cfg_file){
|
||||||
|
|
||||||
get_image_cfg(image_cfg_file);
|
get_image_cfg(image_cfg_file);
|
||||||
|
|
@ -56,6 +58,8 @@ void process_image_cfg(char *image_cfg_file){
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Checkt ob es wieder an der Zeit ist ein File
|
||||||
|
* neu zu erstellen */
|
||||||
int check_file_interval(){
|
int check_file_interval(){
|
||||||
|
|
||||||
struct stat stat_buff;
|
struct stat stat_buff;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue