Top | ![]() |
![]() |
![]() |
![]() |
GstLALFrHistory * | gstlal_frhistory_new () |
GstLALFrHistory * | gstlal_frhistory_copy () |
gchar * | gstlal_frhistory_to_string () |
void | gstlal_frhistory_set_timestamp () |
GstClockTime | gstlal_frhistory_get_timestamp () |
void | gstlal_frhistory_set_comment () |
const gchar * | gstlal_frhistory_get_comment () |
const gchar * | gstlal_frhistory_get_name () |
void | gstlal_frhistory_free () |
gint | gstlal_frhistory_compare_by_time () |
GstLALFrHistory *
gstlal_frhistory_new (const gchar *name
);
Creates a new GstLALFrHistory object. The object returned should be
freed with gstlal_frhistory_free()
.
name |
The name to give the new GstLALFrHistory. The calling code retains ownership of the string. |
[transfer none] |
GstLALFrHistory *
gstlal_frhistory_copy (const GstLALFrHistory *self
);
Creates a deep copy of the GstLALFrHistory object self
.
[method]
gchar *
gstlal_frhistory_to_string (const GstLALFrHistory *self
);
Creates a human-readable string representation of the contents of a GstLALFrHistory object.
[method]
void gstlal_frhistory_set_timestamp (GstLALFrHistory *self
,GstClockTime time
);
FrHistory objects can only store 32-bit integer second timestamps. This function adapts GStreamer's native 64-bit integer nanosecond timestamps to a value suitable for an FrHistory by truncating to the largest integer second not greater than the timestamp.
[method]
self |
GstLALFrHistory object whose timestamp is to be set. |
[transfer none] |
time |
GstClockTime value to which to set timestamp. |
GstClockTime
gstlal_frhistory_get_timestamp (const GstLALFrHistory *self
);
[method]
void gstlal_frhistory_set_comment (GstLALFrHistory *self
,const gchar *comment
);
Sets the comment string of the self
to a copy of comment
. Any
previous value will be
ed.g_free()
[method]
self |
GstLALFrHistory object whose comment is to be set. |
[transfer none] |
comment |
Comment string or NULL. Calling code retains ownership. |
[transfer none][nullable] |
const gchar *
gstlal_frhistory_get_comment (const GstLALFrHistory *self
);
Returns a borrowed reference to the comment string stored in the GstLALFrHistory. The calling code does not own the string and should not free it.
[method]
const gchar *
gstlal_frhistory_get_name (const GstLALFrHistory *self
);
Returns a borrowed reference to the name string stored in the GstLALFrHistory. The calling code does not own the string and should not free it.
[method]
void
gstlal_frhistory_free (GstLALFrHistory *self
);
Frees all memory associated with self
.
[method]
gint gstlal_frhistory_compare_by_time (gconstpointer a
,gconstpointer b
);
a |
Address of GstLALFrHistory a. |
[transfer none] |
b |
Address of GstLALFrHistory b. |
[transfer none] |
<0, 0, >0 if a
's timestamp is less than, equal to, or greater
than, respectively, b
's timestamp. Use with
to put a
GValueArray of GstLALFrHistory objects into time order. Uninitialized
timestamps are treated as being less than all other timestamps. If
either or both of g_list_sort()
a
and b
is NULL the return value is undefined.
struct GstLALFrHistory { guint32 time; gchar *comment; };
Raw FrHistory time entry. Use |
||
Comment string. |