/*
 * soup-discoverable-server.h - A variant of SoupServer with DNS-SD support.
 * Copyright (C) 2007 Openismus GmbH
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * Authors:
 *      Mathias Hasselmann <mathias@openismus.com>
 */
#ifndef __SOUP_DISCOVERABLE_SERVER_H__
#define __SOUP_DISCOVERABLE_SERVER_H__

#include <libsoup/soup-server.h>

G_BEGIN_DECLS

#define SOUP_TYPE_DISCOVERABLE_SERVER           (soup_discoverable_server_get_type())
#define SOUP_DISCOVERABLE_SERVER(obj)           (G_TYPE_CHECK_INSTANCE_CAST(obj, SOUP_TYPE_DISCOVERABLE_SERVER, SoupDiscoverableServer))
#define SOUP_DISCOVERABLE_SERVER_CLASS(cls)     (G_TYPE_CHECK_CLASS_CAST(cls, SOUP_TYPE_DISCOVERABLE_SERVER, SoupDiscoverableServerClass))
#define SOUP_IS_DISCOVERABLE_SERVER(obj)        (G_TYPE_CHECK_INSTANCE_TYPE(obj, SOUP_TYPE_DISCOVERABLE_SERVER))
#define SOUP_IS_DISCOVERABLE_SERVER_CLASS(obj)  (G_TYPE_CHECK_CLASS_TYPE(obj, SOUP_TYPE_DISCOVERABLE_SERVER))
#define SOUP_DISCOVERABLE_SERVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), SOUP_TYPE_DISCOVERABLE_SERVER, SoupDiscoverableServerClass))

typedef struct _SoupDiscoverableServer        SoupDiscoverableServer;
typedef struct _SoupDiscoverableServerClass   SoupDiscoverableServerClass;
typedef struct _SoupDiscoverableServerPrivate SoupDiscoverableServerPrivate;

struct _SoupDiscoverableServer
{
  SoupServer parent_instance;
  SoupDiscoverableServerPrivate *priv;
};

struct _SoupDiscoverableServerClass
{
  SoupServerClass parent_class;
};

GType                soup_discoverable_server_get_type    (void) G_GNUC_CONST;

SoupServer*          soup_discoverable_server_new         (const gchar            *name,
                                                           const gchar            *service);
                                                                
void                 soup_discoverable_server_set_name    (SoupDiscoverableServer *server,
                                                           const gchar            *name);
G_CONST_RETURN char* soup_discoverable_server_get_name    (SoupDiscoverableServer *server);

void                 soup_discoverable_server_set_domain  (SoupDiscoverableServer *server,
                                                           const gchar            *domain);
G_CONST_RETURN char* soup_discoverable_server_get_domain  (SoupDiscoverableServer *server);

void                 soup_discoverable_server_set_service (SoupDiscoverableServer *server,
                                                           const gchar            *service);
G_CONST_RETURN char* soup_discoverable_server_get_service (SoupDiscoverableServer *server);

G_END_DECLS

#endif /* __SOUP_DISCOVERABLE_SERVER_H__ */ 
