This file is indexed.

/usr/include/xfce4/libxfcegui4/session-client.h is in libxfcegui4-dev 4.8.1-5.

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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
/*  xfce4
 *  Copyright (C) 1999 Olivier Fourdan (fourdan@xfce.org)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 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
 * Library 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 Street, Fifth Floor, Boston, MA 02110-1301 USA
 */

#ifndef SESSION_CLIENT_H
#define SESSION_CLIENT_H

#if defined(LIBXFCEGUI4_COMPILATION) || !defined(XFCE_DISABLE_DEPRECATED)

#include <glib.h>
#include <unistd.h>
#include <sys/types.h>
#ifdef HAVE_LIBSM
#include <X11/ICE/ICElib.h>
#include <X11/SM/SMlib.h>
#endif

/* this formatting is needed by glib-mkenums */
typedef enum /*< prefix=SESSION_INTERACT_ >*/ {
    SESSION_INTERACT_NONE,
    SESSION_INTERACT_ERRORS,
    SESSION_INTERACT_ANY
}
SessionInteractStyle;

/* this formatting is needed by glib-mkenums */
typedef enum /*< prefix=SESSION_RESTART_ >*/ {
    SESSION_RESTART_IF_RUNNING,
    SESSION_RESTART_ANYWAY,
    SESSION_RESTART_IMMEDIATELY,
    SESSION_RESTART_NEVER
}
SessionRestartStyle;

/* this formatting is needed by glib-mkenums */
typedef enum /*< prefix=SESSION_CLIENT_ >*/ {
    SESSION_CLIENT_IDLE,
    SESSION_CLIENT_SAVING_PHASE_1,
    SESSION_CLIENT_WAITING_FOR_PHASE_2,
    SESSION_CLIENT_SAVING_PHASE_2,
    SESSION_CLIENT_WAITING_FOR_INTERACT,
    SESSION_CLIENT_DONE_WITH_INTERACT,
    SESSION_CLIENT_FROZEN,
    SESSION_CLIENT_DISCONNECTED,
    SESSION_CLIENT_REGISTERING
}
SessionClientState;

typedef void (*save_phase_2_callback) (gpointer client_data);
typedef void (*interact_callback) (gpointer client_data,
				   SessionInteractStyle interact_style);
typedef void (*shutdown_cancelled_callback) (gpointer client_data);
typedef void (*save_complete_callback) (gpointer client_data);
typedef void (*die_callback) (gpointer client_data);
typedef void (*save_yourself_callback) (gpointer client_data, int save_style,
					gboolean shutdown, int interact_style,
					gboolean fast);

typedef struct SessionClient
{
    save_phase_2_callback save_phase_2;
    interact_callback interact;
    shutdown_cancelled_callback shutdown_cancelled;
    save_complete_callback save_complete;
    die_callback die;
    save_yourself_callback save_yourself;

    gpointer data;
    gpointer session_connection;

    SessionClientState current_state;
    SessionRestartStyle restart_style;
    SessionInteractStyle interact_style;

    gchar priority;

    gchar *client_id;
    gchar *given_client_id;

    gchar *current_directory;
    gchar *program;
    gchar **clone_command;
    gchar **resign_command;
    gchar **restart_command;
    gchar **discard_command;
    gchar **shutdown_command;

    /* Private */

    gboolean shutdown;
}
SessionClient;

SessionClient *client_session_new_full (gpointer data,
					SessionRestartStyle restart_style,
					gchar priority, gchar * client_id,
					gchar * program,
					gchar * current_directory,
					gchar ** restart_command,
					gchar ** clone_command,
					gchar ** discard_command,
					gchar ** resign_command,
					gchar ** shutdown_command);
SessionClient *client_session_new (gint argc, gchar * argv[], gpointer data,
				   SessionRestartStyle restart_style,
				   gchar priority);

void client_session_free(SessionClient * session_client);

gboolean session_init (SessionClient * session_client);
void session_shutdown (SessionClient * session_client);
void logout_session (SessionClient * session_client);

void client_session_set_save_phase_2_callback(SessionClient * session_client, save_phase_2_callback value);
void client_session_set_interact_callback(SessionClient * session_client, interact_callback value);
void client_session_set_shutdown_cancelled_callback(SessionClient * session_client, shutdown_cancelled_callback value);
void client_session_set_save_complete_callback(SessionClient * session_client, save_complete_callback value);
void client_session_set_die_callback(SessionClient * session_client, die_callback value);
void client_session_set_save_yourself_callback(SessionClient * session_client, save_yourself_callback value);
void client_session_set_data(SessionClient * session_client, gpointer value);
void client_session_set_restart_style(SessionClient * session_client, SessionRestartStyle value);
void client_session_set_priority(SessionClient * session_client, gchar value);
void client_session_set_client_id(SessionClient * session_client, gchar const* value);
void client_session_set_current_directory(SessionClient * session_client, gchar const* value);
void client_session_set_program(SessionClient * session_client, gchar const* value);
void client_session_set_clone_command(SessionClient * session_client, gchar** const value);
void client_session_set_resign_command(SessionClient * session_client, gchar** const value);
void client_session_set_restart_command(SessionClient * session_client, gchar** const value);
void client_session_set_discard_command(SessionClient * session_client, gchar** const value);
void client_session_set_shutdown_command(SessionClient * session_client, gchar** const value);
save_phase_2_callback client_session_get_save_phase_2_callback(SessionClient * session_client);
interact_callback client_session_get_interact_callback(SessionClient * session_client);
shutdown_cancelled_callback client_session_get_shutdown_cancelled_callback(SessionClient * session_client);
save_complete_callback client_session_get_save_complete_callback(SessionClient * session_client);
die_callback client_session_get_die_callback(SessionClient * session_client);
save_yourself_callback client_session_get_save_yourself_callback(SessionClient * session_client);
gpointer client_session_get_data(SessionClient * session_client);
gpointer client_session_get_session_connection(SessionClient * session_client);
SessionClientState client_session_get_current_state(SessionClient * session_client);
SessionRestartStyle client_session_get_restart_style(SessionClient * session_client);
SessionInteractStyle client_session_get_interact_style(SessionClient * session_client);
gchar client_session_get_priority(SessionClient * session_client);
gchar const* client_session_get_client_id(SessionClient * session_client);
gchar const* client_session_get_given_client_id(SessionClient * session_client);
gchar const* client_session_get_current_directory(SessionClient * session_client);
gchar const* client_session_get_program(SessionClient * session_client);
G_CONST_RETURN gchar* G_CONST_RETURN * client_session_get_clone_command(SessionClient * session_client);
G_CONST_RETURN gchar* G_CONST_RETURN * client_session_get_resign_command(SessionClient * session_client);
G_CONST_RETURN gchar* G_CONST_RETURN * client_session_get_restart_command(SessionClient * session_client);
G_CONST_RETURN gchar* G_CONST_RETURN * client_session_get_discard_command(SessionClient * session_client);
G_CONST_RETURN gchar* G_CONST_RETURN * client_session_get_shutdown_command(SessionClient * session_client);

#endif /* !XFCE_DISABLE_DEPRECATED */

#endif