This file is indexed.

/usr/include/gjs-1.0/gjs-dbus/dbus-proxy.h is in libgjs-dev 1.32.0-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
/* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
/* Copyright 2008 litl, LLC. */

#ifndef __GJS_UTIL_DBUS_PROXY_H__
#define __GJS_UTIL_DBUS_PROXY_H__

#include <gio/gio.h>
#include <dbus/dbus.h>

G_BEGIN_DECLS


typedef struct _GjsDBusProxy      GjsDBusProxy;
typedef struct _GjsDBusProxyClass GjsDBusProxyClass;

typedef void (* GjsDBusProxyReplyFunc)      (GjsDBusProxy    *proxy,
                                             DBusMessage     *message,
                                             void            *data);
typedef void (* GjsDBusProxyJsonReplyFunc)  (GjsDBusProxy    *proxy,
                                             DBusMessage     *message,
                                             DBusMessageIter *return_value_iter,
                                             void            *data);
typedef void (* GjsDBusProxyErrorReplyFunc) (GjsDBusProxy    *proxy,
                                             const char      *error_name,
                                             const char      *error_message,
                                             void            *data);

#define GJS_TYPE_DBUS_PROXY              (gjs_dbus_proxy_get_type ())
#define GJS_DBUS_PROXY(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), GJS_TYPE_DBUS_PROXY, GjsDBusProxy))
#define GJS_DBUS_PROXY_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), GJS_TYPE_DBUS_PROXY, GjsDBusProxyClass))
#define GJS_IS_DBUS_PROXY(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), GJS_TYPE_DBUS_PROXY))
#define GJS_IS_DBUS_PROXY_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GJS_TYPE_DBUS_PROXY))
#define GJS_DBUS_PROXY_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GJS_TYPE_DBUS_PROXY, GjsDBusProxyClass))

GType           gjs_dbus_proxy_get_type      (void) G_GNUC_CONST;


GjsDBusProxy*   gjs_dbus_proxy_new             (DBusConnection             *connection,
                                                const char                 *bus_name,
                                                const char                 *object_path,
                                                const char                 *iface);
DBusConnection* gjs_dbus_proxy_get_connection  (GjsDBusProxy               *proxy);
const char*     gjs_dbus_proxy_get_bus_name    (GjsDBusProxy               *proxy);
DBusMessage*    gjs_dbus_proxy_new_method_call (GjsDBusProxy               *proxy,
                                                const char                 *method_name);
DBusMessage*    gjs_dbus_proxy_new_json_call   (GjsDBusProxy               *proxy,
                                                const char                 *method_name,
                                                DBusMessageIter            *arg_iter,
                                                DBusMessageIter            *dict_iter);
void            gjs_dbus_proxy_send            (GjsDBusProxy               *proxy,
                                                DBusMessage                *message,
                                                GjsDBusProxyReplyFunc       reply_func,
                                                GjsDBusProxyErrorReplyFunc  error_func,
                                                void                       *data);
void           gjs_dbus_proxy_send_full        (GjsDBusProxy              *proxy,
                                                DBusMessage               *message,
                                                GjsDBusProxyReplyFunc      plain_func,
                                                GjsDBusProxyJsonReplyFunc  json_func,
                                                GjsDBusProxyErrorReplyFunc error_func,
                                                void                      *data);

/* varargs are like:
 *
 *   key1, dbus_type_1, &value_1,
 *   key2, dbus_type_2, &value_2,
 *   NULL
 *
 * Basic types only (no arrays)
 */
void          gjs_dbus_proxy_call_json_async (GjsDBusProxy              *proxy,
                                              const char                *method_name,
                                              GjsDBusProxyJsonReplyFunc  reply_func,
                                              GjsDBusProxyErrorReplyFunc error_func,
                                              void                      *data,
                                              const char                *first_key,
                                              ...);

G_END_DECLS

#endif  /* __GJS_UTIL_DBUS_PROXY_H__ */