Files
actube/src/wtp/wtp.h
7u83 4995cac9b8 WTP reads two configs no
It read 1st the file startup.ckv, wich will
never be overwritten.
And then config.ckv, wich will saved when
ever config cahnges ar made.
2022-08-27 10:16:49 +02:00

38 lines
712 B
C

#ifndef __WTP_H
#define __WTP_H
#include "cw/conn.h"
#include "cw/discovery.h"
extern int sulking_state();
//extern int join();
extern int discovery();
extern int image_update();
extern int setup_conf(struct cw_Conn * conn);
extern int configure();
extern int run();
extern int changestate();
struct cw_DiscoveryResults * cw_run_discovery(struct cw_Conn *conn, const char *addr, const char *bindaddr );
int join(struct cw_Conn * conn, struct cw_DiscoveryResults * dis);
struct cw_Conn * get_conn();
#define MAX_MODS 32
struct bootcfg{
const char * modnames[MAX_MODS];
int nmods;
const char * modpath;
const char * config_file;
const char * startup_file;
};
extern struct bootcfg bootcfg;
#endif