actube/src/wtp/wtp.h

37 lines
684 B
C
Raw Normal View History

#ifndef __WTP_H
#define __WTP_H
#include "cw/conn.h"
2022-08-15 00:51:38 +02:00
#include "cw/discovery.h"
extern int sulking_state();
2022-08-15 00:51:38 +02:00
//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();
2022-08-15 00:51:38 +02:00
struct cw_DiscoveryResults * cw_run_discovery(struct cw_Conn *conn, const char *addr, const char *bindaddr );
2022-08-15 00:51:38 +02:00
int join(struct cw_Conn * conn, struct cw_DiscoveryResults * dis);
struct cw_Conn * get_conn();
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;
#endif