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