2 * Copyright (C) 2008 Ole André Vadla Ravnås <ole.andre.ravnas@tandberg.com>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
20 #ifndef __KSHELPERS_H__
21 #define __KSHELPERS_H__
29 typedef struct _KsDeviceEntry KsDeviceEntry;
38 gboolean ks_is_valid_handle (HANDLE h);
40 GList * ks_enumerate_devices (const GUID * category);
41 void ks_device_entry_free (KsDeviceEntry * entry);
42 void ks_device_list_free (GList * devices);
44 gboolean ks_filter_get_pin_property (HANDLE filter_handle, gulong pin_id, GUID prop_set, gulong prop_id, gpointer value, gulong value_size, gulong * error);
45 gboolean ks_filter_get_pin_property_multi (HANDLE filter_handle, gulong pin_id, GUID prop_set, gulong prop_id, KSMULTIPLE_ITEM ** items, gulong * error);
47 gboolean ks_object_query_property (HANDLE handle, GUID prop_set, gulong prop_id, gulong prop_flags, gpointer * value, gulong * value_size, gulong * error);
48 gboolean ks_object_get_property (HANDLE handle, GUID prop_set, gulong prop_id, gpointer * value, gulong * value_size, gulong * error);
49 gboolean ks_object_set_property (HANDLE handle, GUID prop_set, gulong prop_id, gpointer value, gulong value_size, gulong * error);
51 gboolean ks_object_get_supported_property_sets (HANDLE handle, GUID ** propsets, gulong * len);
53 gboolean ks_object_set_connection_state (HANDLE handle, KSSTATE state, gulong * error);
55 gchar * ks_guid_to_string (const GUID * guid);
56 const gchar * ks_state_to_string (KSSTATE state);
57 gchar * ks_options_flags_to_string (gulong flags);
58 gchar * ks_property_set_to_string (const GUID * guid);
62 #endif /* __KSHELPERS_H__ */