summaryrefslogtreecommitdiff
path: root/lib/base.c
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/base.c
parentc0b178a6ed8d0f539aabf3548ac620bde37db905 (diff)
Rename rs_config to rs_handle.
A configuration will be something else.
Diffstat (limited to 'lib/base.c')
-rw-r--r--lib/base.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/base.c b/lib/base.c
index 2427bae..77de4e2 100644
--- a/lib/base.c
+++ b/lib/base.c
@@ -24,7 +24,7 @@ _do_connect(int type,
}
static struct list *
-_list_new(const struct rs_config *ctx)
+_list_new(const struct rs_handle *ctx)
{
struct list *list = rs_malloc(ctx, sizeof(struct list));
if (list)
@@ -33,7 +33,7 @@ _list_new(const struct rs_config *ctx)
}
static int
-_list_push(const struct rs_config *ctx, /* FIXME: code duplicate, list.c */
+_list_push(const struct rs_handle *ctx, /* FIXME: code duplicate, list.c */
struct list *list,
void *data)
{
@@ -57,7 +57,7 @@ _list_push(const struct rs_config *ctx, /* FIXME: code duplicate, list.c */
}
static void
-_list_destroy(const struct rs_config *ctx, /* FIXME: code dup */
+_list_destroy(const struct rs_handle *ctx, /* FIXME: code dup */
struct list *list)
{
struct list_node *node, *next;
@@ -74,7 +74,7 @@ _list_destroy(const struct rs_config *ctx, /* FIXME: code dup */
/* ------------------------------------------------------- */
int
-rs_connect(const struct rs_config *conf,
+rs_connect(const struct rs_handle *conf,
const struct sockaddr *addr,
socklen_t addrlen)
{
@@ -96,7 +96,7 @@ rs_connect(const struct rs_config *conf,
}
int
-rs_disconnect( const struct rs_config *conf, int fd)
+rs_disconnect( const struct rs_handle *conf, int fd)
{
switch (conf->conn_type)
{
@@ -116,7 +116,7 @@ rs_disconnect( const struct rs_config *conf, int fd)
}
struct rs_packet *
-rs_packet_new(const struct rs_config *ctx,
+rs_packet_new(const struct rs_handle *ctx,
const uint8_t buf[RS_HEADER_LEN],
size_t *count)
{
@@ -136,7 +136,7 @@ rs_packet_new(const struct rs_config *ctx,
}
struct rs_packet *
-rs_packet_parse(const struct rs_config *ctx,
+rs_packet_parse(const struct rs_handle *ctx,
struct rs_packet **packet,
const uint8_t *buf,
size_t buflen)
@@ -191,7 +191,7 @@ rs_packet_parse(const struct rs_config *ctx,
}
void
-rs_packet_free(const struct rs_config *ctx,
+rs_packet_free(const struct rs_handle *ctx,
struct rs_packet **packet)
{
_list_destroy(ctx, (*packet)->attrs);