summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2010-09-15 15:55:34 +0200
committerLinus Nordberg <linus@nordu.net>2010-09-15 15:55:34 +0200
commit22ae2705db4b8b5b2bfe473db6e318452a08897e (patch)
tree04925ec9c56ecb585054304904d2dbcfc01f5f51
parente4eb9414c317c8a0f29f6cd72be4f2aa9bd9ed6e (diff)
Documentation changes.
-rw-r--r--lib/libradsec-base.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/libradsec-base.h b/lib/libradsec-base.h
index d1009af..d8c9a2b 100644
--- a/lib/libradsec-base.h
+++ b/lib/libradsec-base.h
@@ -10,6 +10,8 @@
/* Function prototypes. */
+
+
/** Establish a connection.
@param type Connection type.
@param addr Network address to connect to.
@@ -56,13 +58,13 @@ struct rs_packet *rs_packet_parse(const struct rs_handle *ctx,
const uint8_t *buf,
size_t buflen);
-/** Free a packet that has been allocated by @a rs_packet_new().
+/** Free @a packet, previously allocated by @a rs_packet_new().
@param ctx Context.
@param packet Packet to free.
*/
void rs_packet_free(const struct rs_handle *ctx, struct rs_packet **packet);
-/** Serialize a packet.
+/** Serialize @a packet into @a buf.
@param packet Packet to serialize.
@param buf Buffer to store the serialized packet in.
@param buflen Length of buffer.
@@ -72,3 +74,10 @@ void rs_packet_free(const struct rs_handle *ctx, struct rs_packet **packet);
ssize_t rs_packet_serialize(const struct rs_packet *packet,
uint8_t *buf, size_t buflen);
+
+
+/** Add an attribute to a packet.
+ @param packet The packet.
+ @param attribute Attribute to add to packet. */
+int rs_packet_add_attr(struct rs_packet *packet,
+ const struct rs_attribute *attribute);