2014-07-11 22:12:11 +02:00
|
|
|
#ifndef __WTP_H
|
|
|
|
#define __WTP_H
|
|
|
|
|
2016-03-03 19:51:42 +01:00
|
|
|
#include "cw/conn.h"
|
2022-08-15 00:51:38 +02:00
|
|
|
#include "cw/discovery.h"
|
2015-04-07 07:42:36 +02:00
|
|
|
|
|
|
|
|
2014-07-11 22:12:11 +02:00
|
|
|
extern int sulking_state();
|
2022-08-15 00:51:38 +02:00
|
|
|
//extern int join();
|
2015-04-07 07:42:36 +02:00
|
|
|
extern int discovery();
|
2015-04-11 19:00:51 +02:00
|
|
|
extern int image_update();
|
2022-08-10 02:10:10 +02:00
|
|
|
extern int setup_conf(struct cw_Conn * conn);
|
2015-04-26 12:36:53 +02:00
|
|
|
extern int configure();
|
|
|
|
extern int run();
|
|
|
|
extern int changestate();
|
|
|
|
|
2015-04-07 07:42:36 +02:00
|
|
|
|
2022-08-15 00:51:38 +02:00
|
|
|
struct cw_DiscoveryResults * cw_run_discovery(struct cw_Conn *conn, const char *addr, const char *bindaddr );
|
2015-04-07 07:42:36 +02:00
|
|
|
|
2022-08-15 00:51:38 +02:00
|
|
|
int join(struct cw_Conn * conn, struct cw_DiscoveryResults * dis);
|
2018-03-30 23:58:21 +02:00
|
|
|
|
2022-08-10 02:10:10 +02:00
|
|
|
struct cw_Conn * get_conn();
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2022-08-19 22:23:55 +02:00
|
|
|
|
|
|
|
#define MAX_MODS 32
|
|
|
|
struct bootcfg{
|
|
|
|
const char * modnames[MAX_MODS];
|
|
|
|
int nmods;
|
|
|
|
const char * modpath;
|
|
|
|
const char * cfgfilename;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct bootcfg bootcfg;
|
|
|
|
|
|
|
|
|
2014-07-11 22:12:11 +02:00
|
|
|
#endif
|