/usr/include/libhud-client-2/libhud-client/connection.h is in libhud-client2-dev 13.10.1+14.04.20140402-0ubuntu1.
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 121 122 123 124 | /*
* Copyright © 2012 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranties of
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Author: Ted Gould <ted@canonical.com>
*/
#if !defined (_HUD_CLIENT_H_INSIDE) && !defined (HUD_CLIENT_COMPILATION)
#error "Only <hud-client.h> can be included directly."
#endif
#ifndef __HUD_CLIENT_CONNECTION_H__
#define __HUD_CLIENT_CONNECTION_H__
#pragma GCC visibility push(default)
#include <glib-object.h>
G_BEGIN_DECLS
#define HUD_CLIENT_TYPE_CONNECTION (hud_client_connection_get_type ())
#define HUD_CLIENT_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), HUD_CLIENT_TYPE_CONNECTION, HudClientConnection))
#define HUD_CLIENT_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), HUD_CLIENT_TYPE_CONNECTION, HudClientConnectionClass))
#define HUD_CLIENT_IS_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HUD_CLIENT_TYPE_CONNECTION))
#define HUD_CLIENT_IS_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), HUD_CLIENT_TYPE_CONNECTION))
#define HUD_CLIENT_CONNECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), HUD_CLIENT_TYPE_CONNECTION, HudClientConnectionClass))
/**
* HUD_CLIENT_CONNECTION_SIGNAL_CONNECTION_STATUS:
*
* Signal to notify on a change in the connection status
*/
#define HUD_CLIENT_CONNECTION_SIGNAL_CONNECTION_STATUS "connection-status"
typedef struct _HudClientConnection HudClientConnection;
typedef struct _HudClientConnectionClass HudClientConnectionClass;
typedef struct _HudClientConnectionPrivate HudClientConnectionPrivate ;
/**
* HudClientConnectionPrivate:
*
* Private data for #HudClientConnection.
*/
/**
* HudClientConnectionNewQueryCallback:
* @connection: #HudClientConnection for the request
* @query_path: Path to the query object on DBus
* @results_name: DBus name for the results
* @appstack_name: DBus name for the appstack
* @user_data: Passed in user data
*
* Callback for the async call to create a new query
*/
typedef void (*HudClientConnectionNewQueryCallback) (HudClientConnection * connection,
const gchar * query_path,
const gchar * results_name,
const gchar * appstack_name,
gpointer user_data);
/**
* HudClientConnectionClass:
* @parent_class: #GObjectClass
*
* Class information for #HudClientConnection
*/
struct _HudClientConnectionClass {
GObjectClass parent_class;
};
/**
* HudClientConnection:
*
* Object to make a generic connection to a HUD service. For the most
* part people should just create a #HudClientQuery and that'll use the
* default HUD service. For most folks that should be enough.
*/
struct _HudClientConnection {
GObject parent;
HudClientConnectionPrivate * priv;
};
GType hud_client_connection_get_type (void);
HudClientConnection * hud_client_connection_get_ref (void);
HudClientConnection * hud_client_connection_new (const gchar * dbus_address,
const gchar * dbus_path);
void hud_client_connection_new_query (HudClientConnection * connection,
const gchar * query,
HudClientConnectionNewQueryCallback cb,
gpointer user_data);
const gchar * hud_client_connection_get_address (HudClientConnection * connection);
gboolean hud_client_connection_connected (HudClientConnection * connection);
/**
SECTION:connection
@short_description: Provide a connection to the HUD service
@stability: Unstable
@include: libhud-client/connection.h
The connection is an object to maintain a connection to the default
objects on the HUD service. It provides access to the functionality
there and can be used to create queries.
Most users should not bother with a connection, it will be created
by the #HudClientQuery if one is not provided. Most usage is for
testing and using custom HUD services.
*/
G_END_DECLS
#pragma GCC visibility pop
#endif
|