|
avahi 0.6.30
|
00001 /* 00002 * ga-record-browser.h - Header for GaRecordBrowser 00003 * Copyright (C) 2007 Collabora Ltd. 00004 * @author Sjoerd Simons <sjoerd@luon.net> 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00019 */ 00020 00021 #ifndef __GA_RECORD_BROWSER_H__ 00022 #define __GA_RECORD_BROWSER_H__ 00023 00024 #include <glib-object.h> 00025 #include <avahi-client/lookup.h> 00026 #include <avahi-common/defs.h> 00027 #include "ga-client.h" 00028 #include "ga-enums.h" 00029 00030 G_BEGIN_DECLS 00031 00032 typedef struct _GaRecordBrowser GaRecordBrowser; 00033 typedef struct _GaRecordBrowserClass GaRecordBrowserClass; 00034 00035 struct _GaRecordBrowserClass { 00036 GObjectClass parent_class; 00037 }; 00038 00039 struct _GaRecordBrowser { 00040 GObject parent; 00041 }; 00042 00043 GType ga_record_browser_get_type(void); 00044 00045 /* TYPE MACROS */ 00046 #define GA_TYPE_RECORD_BROWSER \ 00047 (ga_record_browser_get_type()) 00048 #define GA_RECORD_BROWSER(obj) \ 00049 (G_TYPE_CHECK_INSTANCE_CAST((obj), GA_TYPE_RECORD_BROWSER, GaRecordBrowser)) 00050 #define GA_RECORD_BROWSER_CLASS(klass) \ 00051 (G_TYPE_CHECK_CLASS_CAST((klass), GA_TYPE_RECORD_BROWSER, GaRecordBrowserClass)) 00052 #define IS_GA_RECORD_BROWSER(obj) \ 00053 (G_TYPE_CHECK_INSTANCE_TYPE((obj), GA_TYPE_RECORD_BROWSER)) 00054 #define IS_GA_RECORD_BROWSER_CLASS(klass) \ 00055 (G_TYPE_CHECK_CLASS_TYPE((klass), GA_TYPE_RECORD_BROWSER)) 00056 #define GA_RECORD_BROWSER_GET_CLASS(obj) \ 00057 (G_TYPE_INSTANCE_GET_CLASS ((obj), GA_TYPE_RECORD_BROWSER, GaRecordBrowserClass)) 00058 00059 GaRecordBrowser *ga_record_browser_new(const gchar * name, guint16 type); 00060 00061 GaRecordBrowser *ga_record_browser_new_full(AvahiIfIndex interface, 00062 AvahiProtocol protocol, 00063 const gchar * name, 00064 guint16 clazz, 00065 guint16 type, 00066 GaLookupFlags flags); 00067 00068 gboolean 00069 ga_record_browser_attach(GaRecordBrowser * browser, 00070 GaClient * client, GError ** error); 00071 00072 00073 G_END_DECLS 00074 #endif /* #ifndef __GA_RECORD_BROWSER_H__ */