diff options
author | Timo Dritschler <timo.dritschler@kit.edu> | 2014-11-21 17:54:13 +0100 |
---|---|---|
committer | Timo Dritschler <timo.dritschler@kit.edu> | 2014-11-21 17:54:13 +0100 |
commit | 5235e634860744f0b1251b0e50e89446f93381c2 (patch) | |
tree | b2ead7723f9d7fe30ca5fc000b7f37dd150d0561 /src/kiro-trb.h | |
parent | f98bd3a5d58c59d950aa7318e9b708c42d51687f (diff) | |
download | kiro-5235e634860744f0b1251b0e50e89446f93381c2.tar.gz kiro-5235e634860744f0b1251b0e50e89446f93381c2.tar.bz2 kiro-5235e634860744f0b1251b0e50e89446f93381c2.tar.xz kiro-5235e634860744f0b1251b0e50e89446f93381c2.zip |
Fix #1: Added missing documentation to TRB, Client and Server header
Fixed build warnings
Fixed a bug in kiro-test-bandwidth
Diffstat (limited to 'src/kiro-trb.h')
-rw-r--r-- | src/kiro-trb.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/kiro-trb.h b/src/kiro-trb.h index ff8d418..806ad5e 100644 --- a/src/kiro-trb.h +++ b/src/kiro-trb.h @@ -78,10 +78,35 @@ struct KiroTrbInfo { /* GObject and GType functions */ +/** + * kiro_trb_get_type: (skip) + * Returns: GType of #KiroTrb + */ GType kiro_trb_get_type (void); +/** + * kiro_trb_new - Creates a new #KiroTrb + * Returns: (transfer full): A pointer to a new #KiroTrb + * Description: + * Creates a new, unshaped #KiroTrb and returns a pointer to it. + * See also: + * kiro_trb_free, kiro_trb_reshape + */ KiroTrb* kiro_trb_new (void); +/** + * kiro_trb_free - 'Destroys' the given #KiroTrb + * @trb: (transfer none): The #KiroTrb that is to be freed + * Description: + * Clears all underlying memory and frees the object memory. + * Note: + * The internal memory is also freed when calling this function. If you want + * to continue using the raw @trb memory after call this function, you need to + * memcpy() its content using the information optained from + * kiro_trb_get_raw_buffer and kiro_trb_get_raw_size. + * See also: + * kiro_trb_new + */ void kiro_trb_free (KiroTrb *trb); |