/usr/include/libepc-1.0/libepc/dispatcher.h is in libepc-dev 0.4.4-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | /* Easy Publish and Consume Library
* Copyright (C) 2007, 2008 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
*/
#ifndef __EPC_DISPATCHER_H__
#define __EPC_DISPATCHER_H__
#include <libepc/service-info.h>
G_BEGIN_DECLS
#define EPC_TYPE_DISPATCHER (epc_dispatcher_get_type())
#define EPC_DISPATCHER(obj) (G_TYPE_CHECK_INSTANCE_CAST(obj, EPC_TYPE_DISPATCHER, EpcDispatcher))
#define EPC_DISPATCHER_CLASS(cls) (G_TYPE_CHECK_CLASS_CAST(cls, EPC_TYPE_DISPATCHER, EpcDispatcherClass))
#define EPC_IS_DISPATCHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE(obj, EPC_TYPE_DISPATCHER))
#define EPC_IS_DISPATCHER_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE(obj, EPC_TYPE_DISPATCHER))
#define EPC_DISPATCHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), EPC_TYPE_DISPATCHER, EpcDispatcherClass))
typedef struct _EpcDispatcher EpcDispatcher;
typedef struct _EpcDispatcherClass EpcDispatcherClass;
typedef struct _EpcDispatcherPrivate EpcDispatcherPrivate;
/**
* EpcCollisionHandling:
* @EPC_COLLISIONS_IGNORE: Don't handle collisions at all, just fail silently.
* @EPC_COLLISIONS_CHANGE_NAME: Try to announce the service with another name.
* @EPC_COLLISIONS_UNIQUE_SERVICE: Defer own service announcement until the other service.
* disappears.
*
* Various strategies for handling service name collisions.
*/
typedef enum
{
EPC_COLLISIONS_IGNORE,
EPC_COLLISIONS_CHANGE_NAME,
EPC_COLLISIONS_UNIQUE_SERVICE
}
EpcCollisionHandling;
/**
* EpcDispatcher:
*
* Public fields of the #EpcDispatcher class.
*/
struct _EpcDispatcher
{
/*< private >*/
GObject parent_instance;
EpcDispatcherPrivate *priv;
/*< public >*/
};
/**
* EpcDispatcherClass:
*
* Virtual methods of the #EpcDispatcher class.
*/
struct _EpcDispatcherClass
{
/*< private >*/
GObjectClass parent_class;
/*< public >*/
};
GType epc_dispatcher_get_type (void) G_GNUC_CONST;
EpcDispatcher* epc_dispatcher_new (const gchar *name);
gboolean epc_dispatcher_run (EpcDispatcher *dispatcher,
GError **error);
void epc_dispatcher_reset (EpcDispatcher *dispatcher);
void epc_dispatcher_add_service (EpcDispatcher *dispatcher,
EpcAddressFamily protocol,
const gchar *type,
const gchar *domain,
const gchar *host,
guint16 port,
...)
G_GNUC_NULL_TERMINATED;
void epc_dispatcher_add_service_subtype (EpcDispatcher *dispatcher,
const gchar *type,
const gchar *subtype);
void epc_dispatcher_set_service_details (EpcDispatcher *dispatcher,
const gchar *type,
...)
G_GNUC_NULL_TERMINATED;
void epc_dispatcher_set_name (EpcDispatcher *dispatcher,
const gchar *name);
void epc_dispatcher_set_cookie (EpcDispatcher *dispatcher,
const gchar *cookie);
void epc_dispatcher_set_collision_handling (EpcDispatcher *dispatcher,
EpcCollisionHandling method);
const gchar* epc_dispatcher_get_name (EpcDispatcher *dispatcher);
EpcCollisionHandling epc_dispatcher_get_collision_handling (EpcDispatcher *dispatcher);
const gchar* epc_dispatcher_get_cookie (EpcDispatcher *dispatcher);
G_END_DECLS
#endif /* __EPC_DISPATCHER_H__ */
|