[build] __BEGIN/__END_CDECLS around many headers
This commit is contained in:
@@ -23,8 +23,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <compiler.h>
|
||||
#include <lib/bootimage_struct.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
|
||||
typedef struct bootimage bootimage;
|
||||
|
||||
bootimage *bootimage_init(void);
|
||||
@@ -41,3 +44,5 @@ bootentry_file *bootimage_add_file(
|
||||
void bootimage_done(bootimage *img);
|
||||
|
||||
int bootimage_write(bootimage *img, int fd);
|
||||
|
||||
__END_CDECLS;
|
||||
|
||||
@@ -23,6 +23,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
|
||||
// connect to host, issue cmd:args, and if txfd != -1, send the contents
|
||||
// of that file as the command payload
|
||||
int lkboot_txn(const char *host, const char *cmd, int txfd, const char *args);
|
||||
@@ -30,3 +34,5 @@ int lkboot_txn(const char *host, const char *cmd, int txfd, const char *args);
|
||||
// return number of bytes of data the last txn resulted in and if nonzero
|
||||
// set *ptr = the buffer (which remains valid until next lkboot_txn())
|
||||
unsigned lkboot_get_reply(void **ptr);
|
||||
|
||||
__END_CDECLS;
|
||||
|
||||
@@ -22,12 +22,15 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <compiler.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
|
||||
int udp_listen(in_addr_t addr, unsigned port, int shared);
|
||||
int udp_connect(in_addr_t addr, unsigned port);
|
||||
|
||||
@@ -35,3 +38,5 @@ int tcp_listen(in_addr_t addr, unsigned port);
|
||||
int tcp_connect(in_addr_t addr, unsigned port);
|
||||
|
||||
in_addr_t lookup_hostname(const char *hostname);
|
||||
|
||||
__END_CDECLS;
|
||||
|
||||
Reference in New Issue
Block a user