/usr/include/libepc-1.0/libepc/consumer.h is in libepc-dev 0.4.6-1.
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 120 | /* 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_CONSUMER_H__
#define __EPC_CONSUMER_H__
#include <libepc/service-monitor.h>
#include <libepc/service-type.h>
G_BEGIN_DECLS
/**
* EPC_HTTP_ERROR:
*
* Error domain for HTTP operations. Errors in this domain will
* be from the #SoupKnownStatusCode enumeration. See GError for
* information on error domains.
*/
#define EPC_HTTP_ERROR (epc_http_error_quark())
#define EPC_TYPE_CONSUMER (epc_consumer_get_type())
#define EPC_CONSUMER(obj) (G_TYPE_CHECK_INSTANCE_CAST(obj, EPC_TYPE_CONSUMER, EpcConsumer))
#define EPC_CONSUMER_CLASS(cls) (G_TYPE_CHECK_CLASS_CAST(cls, EPC_TYPE_CONSUMER, EpcConsumerClass))
#define EPC_IS_CONSUMER(obj) (G_TYPE_CHECK_INSTANCE_TYPE(obj, EPC_TYPE_CONSUMER))
#define EPC_IS_CONSUMER_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE(obj, EPC_TYPE_CONSUMER))
#define EPC_CONSUMER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), EPC_TYPE_CONSUMER, EpcConsumerClass))
typedef struct _EpcConsumer EpcConsumer;
typedef struct _EpcConsumerClass EpcConsumerClass;
typedef struct _EpcConsumerPrivate EpcConsumerPrivate;
/**
* EpcConsumer:
*
* Public fields of the #EpcConsumer class.
*/
struct _EpcConsumer
{
/*< private >*/
GObject parent_instance;
EpcConsumerPrivate *priv;
/*< public >*/
};
/**
* EpcConsumerClass:
* @authenticate: virtual method of the #EpcConsumer::authenticate signal
* @publisher_resolved: virtual method of the #EpcConsumer::publisher-resolved signal
*
* Virtual methods of the #EpcConsumer class.
*/
struct _EpcConsumerClass
{
/*< private >*/
GObjectClass parent_class;
/*< public >*/
void (*authenticate) (EpcConsumer *consumer,
const gchar *realm);
void (*publisher_resolved) (EpcConsumer *consumer,
EpcProtocol protocol,
const gchar *hostname,
guint port);
};
GType epc_consumer_get_type (void) G_GNUC_CONST;
EpcConsumer* epc_consumer_new (const EpcServiceInfo *service);
EpcConsumer* epc_consumer_new_for_name (const gchar *name);
EpcConsumer* epc_consumer_new_for_name_full (const gchar *name,
const gchar *application,
const gchar *domain);
void epc_consumer_set_protocol (EpcConsumer *consumer,
EpcProtocol protocol);
void epc_consumer_set_username (EpcConsumer *consumer,
const gchar *username);
void epc_consumer_set_password (EpcConsumer *consumer,
const gchar *password);
EpcProtocol epc_consumer_get_protocol (EpcConsumer *consumer);
const gchar* epc_consumer_get_username (EpcConsumer *consumer);
const gchar* epc_consumer_get_password (EpcConsumer *consumer);
gboolean epc_consumer_resolve_publisher (EpcConsumer *consumer,
guint timeout);
gboolean epc_consumer_is_publisher_resolved (EpcConsumer *consumer);
gpointer epc_consumer_lookup (EpcConsumer *consumer,
const gchar *key,
gsize *length,
GError **error);
GList* epc_consumer_list (EpcConsumer *consumer,
const gchar *pattern,
GError **error);
GQuark epc_http_error_quark (void) G_GNUC_CONST;
G_END_DECLS
#endif /* __EPC_CONSUMER_H__ */
|