X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fmeta.h;h=039fa34840746ca92d79c92eb0391be215f6677e;hb=21e47177687ac553303005941b971092e973575a;hp=38c9b8115d8c5c683fe4be5a920f9c2f8ec57bae;hpb=9415f4b08fb2ca9ae933edd0bf8b096db195ebae;p=meshlink diff --git a/src/meta.h b/src/meta.h index 38c9b811..039fa348 100644 --- a/src/meta.h +++ b/src/meta.h @@ -1,6 +1,9 @@ +#ifndef MESHLINK_META_H +#define MESHLINK_META_H + /* meta.h -- header for meta.c - Copyright (C) 2014 Guus Sliepen + Copyright (C) 2014, 2017 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,15 +20,14 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __MESHLINK_META_H__ -#define __MESHLINK_META_H__ - #include "connection.h" -extern bool send_meta(struct meshlink_handle *mesh, struct connection_t *, const char *, int); -extern bool send_meta_sptps(void *, uint8_t, const void *, size_t); -extern bool receive_meta_sptps(void *, uint8_t, const void *, uint16_t); -extern void broadcast_meta(struct meshlink_handle *mesh, struct connection_t *, const char *, int); -extern bool receive_meta(struct meshlink_handle *mesh, struct connection_t *); +bool send_meta(struct meshlink_handle *mesh, struct connection_t *, const char *, int); +bool send_meta_sptps(void *, uint8_t, const void *, size_t); +bool receive_meta_sptps(void *, uint8_t, const void *, uint16_t); +void broadcast_meta(struct meshlink_handle *mesh, struct connection_t *, const char *, int); +extern void broadcast_submesh_meta(struct meshlink_handle *mesh, connection_t *from, const submesh_t *s, + const char *buffer, int length); +bool receive_meta(struct meshlink_handle *mesh, struct connection_t *) __attribute__((__warn_unused_result__)); -#endif /* __MESHLINK_META_H__ */ +#endif