aboutsummaryrefslogtreecommitdiff
path: root/src/buffer.h
diff options
context:
space:
mode:
authorE. Westbrook <github@westbrook.io>2019-02-27 20:56:01 -0700
committerE. Westbrook <github@westbrook.io>2019-03-10 00:03:04 -0700
commite3ac49efbda8b432470b57eae6fade7501c3da03 (patch)
tree2552684383acc7d48bc104865433cedd50137160 /src/buffer.h
parent98800e9129a63e8d0f751108d79efdffe58e98f7 (diff)
downloadluasocket-e3ac49efbda8b432470b57eae6fade7501c3da03.tar.gz
luasocket-e3ac49efbda8b432470b57eae6fade7501c3da03.tar.bz2
luasocket-e3ac49efbda8b432470b57eae6fade7501c3da03.zip
buffer: pragma visibility
Diffstat (limited to '')
-rw-r--r--src/buffer.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 1281bb3..4218ea0 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -15,8 +15,7 @@
15* The module is built on top of the I/O abstraction defined in io.h and the 15* The module is built on top of the I/O abstraction defined in io.h and the
16* timeout management is done with the timeout.h interface. 16* timeout management is done with the timeout.h interface.
17\*=========================================================================*/ 17\*=========================================================================*/
18#include "lua.h" 18#include "luasocket.h"
19
20#include "io.h" 19#include "io.h"
21#include "timeout.h" 20#include "timeout.h"
22 21
@@ -34,12 +33,16 @@ typedef struct t_buffer_ {
34} t_buffer; 33} t_buffer;
35typedef t_buffer *p_buffer; 34typedef t_buffer *p_buffer;
36 35
36#pragma GCC visibility push(hidden)
37
37int buffer_open(lua_State *L); 38int buffer_open(lua_State *L);
38void buffer_init(p_buffer buf, p_io io, p_timeout tm); 39void buffer_init(p_buffer buf, p_io io, p_timeout tm);
39int buffer_meth_send(lua_State *L, p_buffer buf);
40int buffer_meth_receive(lua_State *L, p_buffer buf);
41int buffer_meth_getstats(lua_State *L, p_buffer buf); 40int buffer_meth_getstats(lua_State *L, p_buffer buf);
42int buffer_meth_setstats(lua_State *L, p_buffer buf); 41int buffer_meth_setstats(lua_State *L, p_buffer buf);
42int buffer_meth_send(lua_State *L, p_buffer buf);
43int buffer_meth_receive(lua_State *L, p_buffer buf);
43int buffer_isempty(p_buffer buf); 44int buffer_isempty(p_buffer buf);
44 45
46#pragma GCC visibility pop
47
45#endif /* BUF_H */ 48#endif /* BUF_H */