Files
mars_nwe_pcab/src/slp.h

19 lines
882 B
C

/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef MARS_SLP_H
#define MARS_SLP_H
#include <stddef.h>
#include <stdint.h>
/* Limited SLPv2 service agent: one locally observed bindery service, DEFAULT scope. */
int slp_name_valid(const char *name);
size_t slp_response(const uint8_t *in,size_t n,uint8_t *out,size_t cap,const char *name,uint32_t address,int multicast);
int nds_tree_valid(const char *tree);
void nds_discovery_set_tree(const char *tree);
const char *nds_discovery_tree(void);
size_t nds_sap_reply(const uint8_t *,size_t,uint8_t *,size_t,const char *,uint32_t,const uint8_t *);
size_t slp_response_tree(const uint8_t *,size_t,uint8_t *,size_t,const char *,uint32_t,int,const char *);
void slp_tick(int ready,uint32_t address,uint32_t mask,const char *name,unsigned port);
void slp_stop(void);
const char *slp_status(void);
unsigned long slp_replies(void);
#endif