Top |
Classes that implement this interface can, for instance:
Allow backends to implement a UPnP Search call using native searching (such as SQL or SPARQL queries).
Implement searching via the naïve default implementation provided by rygel_searchable_container_simple_search()
, which does a recursive tree walk.
The search_classes property lists what information this container may be searched for. It is mapped to upnp:searchClass (with includeDerived assumed to be false),
typedef struct _RygelSearchableContainer RygelSearchableContainer;
The base class for searchable containers.
Classes that implement this interface can, for instance:
Allow backends to implement a UPnP Search call using native searching (such as SQL or SPARQL queries).
Implement searching via the naïve default implementation provided by rygel_searchable_container_simple_search()
, which does a recursive tree walk.
The search_classes property lists what information this container may be searched for. It is mapped to upnp:searchClass (with includeDerived assumed to be false),
struct RygelSearchableContainerIface { GTypeInterface parent_iface; void (*search) (RygelSearchableContainer* self, RygelSearchExpression* expression, guint offset, guint max_count, const gchar* sort_criteria, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_); RygelMediaObjects* (*search_finish) (RygelSearchableContainer* self, GAsyncResult* _res_, guint* total_matches, GError** error); GeeArrayList* (*get_search_classes) (RygelSearchableContainer* self); void (*set_search_classes) (RygelSearchableContainer* self, GeeArrayList* value); };
Interface for creating RygelSearchableContainer implementations.
the parent interface structure |
||
virtual method called by |
||
asynchronous finish function for |
||
getter method for the abstract property "search-classes" |
||
setter method for the abstract property "search-classes" |