summaryrefslogtreecommitdiff
path: root/lib/examples
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2010-09-15 00:49:54 +0200
committerLinus Nordberg <linus@nordu.net>2010-09-15 00:49:54 +0200
commit2c5c0696e3b1ebd25c8ba6615187edc02b96da4b (patch)
tree122abf4042c59b842d2325bffba4386377fe2b06 /lib/examples
parentc0b178a6ed8d0f539aabf3548ac620bde37db905 (diff)
Rename rs_config to rs_handle.
A configuration will be something else.
Diffstat (limited to 'lib/examples')
-rw-r--r--lib/examples/blocking.c4
-rw-r--r--lib/examples/blocking.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/examples/blocking.c b/lib/examples/blocking.c
index 35650ea..b66eb64 100644
--- a/lib/examples/blocking.c
+++ b/lib/examples/blocking.c
@@ -7,7 +7,7 @@
#include "blocking.h"
struct rs_packet *
-next_packet (const struct rs_config *ctx, int fd)
+next_packet (const struct rs_handle *ctx, int fd)
{
uint8_t hdr[RS_HEADER_LEN];
uint8_t *buf;
@@ -44,7 +44,7 @@ next_packet (const struct rs_config *ctx, int fd)
}
int
-send_packet(const struct rs_config *ctx, int fd, struct rs_packet *p)
+send_packet(const struct rs_handle *ctx, int fd, struct rs_packet *p)
{
uint8_t *buf = NULL;
ssize_t n = -20; /* Arbitrary packet size -- a guess. */
diff --git a/lib/examples/blocking.h b/lib/examples/blocking.h
index 04a07a8..f91e6be 100644
--- a/lib/examples/blocking.h
+++ b/lib/examples/blocking.h
@@ -1,4 +1,4 @@
#include "libradsec-base.h"
-struct rs_packet *next_packet (const struct rs_config *ctx, int fd);
-int send_packet (const struct rs_config *ctx, int fd, struct rs_packet *p);
+struct rs_packet *next_packet (const struct rs_handle *ctx, int fd);
+int send_packet (const struct rs_handle *ctx, int fd, struct rs_packet *p);