| Top |
| IpatchSLI * | ipatch_sli_new () |
| #define | ipatch_sli_get_insts() |
| #define | ipatch_sli_get_samples() |
| void | ipatch_sli_set_file () |
| IpatchSLIFile * | ipatch_sli_get_file () |
| char * | ipatch_sli_make_unique_name () |
| IpatchSLIInst * | ipatch_sli_find_inst () |
| IpatchSLISample * | ipatch_sli_find_sample () |
| IpatchList * | ipatch_sli_get_zone_references () |
void ipatch_sli_set_file (IpatchSLI *sli,IpatchSLIFile *file);
Sets the file object of a SLI object. SLI files are kept open
for sample data that references the file. This function sets a
Spectralis object's authoritive file. A convenience function, as
ipatch_base_set_file() does the same thing (albeit without more specific
type casting).
IpatchSLIFile *
ipatch_sli_get_file (IpatchSLI *sli);
Gets the file object of a SLI object. The returned SLI file object's
reference count has been incremented. The caller owns the reference and is
responsible for removing it with g_object_unref.
A convenience function as ipatch_base_get_file() does the same thing
(albeit without more specific type casting).
char * ipatch_sli_make_unique_name (IpatchSLI *sli,GType child_type,const char *name,const IpatchItem *exclude);
Generates a unique name for the given child_type
in sli
. The name
parameter is used as a base and is modified, by appending a number, to
make it unique (if necessary). The exclude
parameter is used to exclude
an existing sli
child item from the search.
MT-Note: To ensure that an item is actually unique before being
added to a SLI object, ipatch_container_add_unique() should be
used.
IpatchSLIInst * ipatch_sli_find_inst (IpatchSLI *sli,const char *name,const IpatchSLIInst *exclude);
Find an instrument by name
in an SLI object. If a matching instrument
is found, its reference count is incremented before it is returned.
The caller is responsible for removing the reference with g_object_unref()
when finished with it.
IpatchSLISample * ipatch_sli_find_sample (IpatchSLI *sli,const char *name,const IpatchSLISample *exclude);
Find a sample by name
in a SLI object. If a sample is found its
reference count is incremented before it is returned. The caller
is responsible for removing the reference with g_object_unref()
when finished with it.
IpatchList *
ipatch_sli_get_zone_references (IpatchSLISample *sample);
Get list of zones referencing an IpatchSLISample.
New item list containing IpatchSLIZone objects
that refer to sample
. The returned list has a reference count of 1 which
the caller owns, unreference to free the list.
[transfer full]