This file is indexed.

/usr/include/libxnee/xnee_utils.h is in libxnee-dev 3.19-2.

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
/*****
 *       Xnee's Not an Event Emulator                                
 *                                                                   
 * Xnee enables recording and replaying of X protocol data           
 *                                                                   
 *        Copyright (C) 1999, 2000, 2001, 2002, 2003, 
 *                      2004, 2010, 2011  Henrik Sandklef 
 *                                                                   
 * This program is free software; you can redistribute it and/or     
 * modify it under the terms of the GNU General Public License       
 * as published by the Free Software Foundation; either version 3    
 * of the License, or any later version.                             
 *                                                                   
 *                                                                   
 * This program 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 General Public License for more details.                      
 *                                                                   
 * You should have received a copy of the GNU General Public License 
 * along with this program; if not, write to the Free Software       
 * Foundation, Inc., 51 Franklin Street, Boston,            
 * MA  02110-1301, USA.                                              
 ****/




#ifndef XNEE_XNEE_UTILS_H
#define XNEE_XNEE_UTILS_H
#include "xnee.h"

#ifdef LONG64
#define CARD32_PRINTF_FMT "%ld"
#define SIZE_T_PRINTF_FMT  "%d"
#else
#define CARD32_PRINTF_FMT "%ld"
#define SIZE_T_PRINTF_FMT "%d"
#endif
#define TIME_PRINTF_FMT  CARD32_PRINTF_FMT


/**
 * Removes XNEE_COMMENT_START from the argument
 * and removes unnecessary allocated memory
 * @param xd     xnee's main structure
 * @param str    string to clean up
 * @return int   1 on success
 */
int
xnee_rem_comment_start(xnee_data *xd, char *str) ;



int
xnee_write_settings_to_file (xnee_data *xd, FILE *fp);





/*
 *  INTERNAL USE
 *
 * Sleep for int seconds
 * and print some information to the user about the remaining time
 * 
 * Useful if a user wants to wait for a few seconds in order to iconize
 * the terminal window where record was started .... just an exanple
 *
 */
void xnee_delay (int , char *) ;


/**
 * Removes blanks from the argument
 * and removes unnecessary allocated memory
 * 
 * @param xd    xnee's main structure
 * @param str   string to clean up
 * @return int  1 on success
 */
int
xnee_strip(xnee_data *xd, char *str) ;





int
rem_all_blanks (char *array, size_t size);


int
rem_begin_blanks (char *array, int size);

int
rem_blanks (char *array, int size);






/**
 * Returns the clients (displays) id (resource )
 * @param dpy   display of the client
 * @return XID  client's X ID
 */
XID 
xnee_client_id (Display *dpy);

#define XNEE_ATOI_FUNCTION(func, xd, str, xnee_macro_in_ret_val) \
        { \
          int my_xnee_atio_macro_function_ret ; \
          if ( sscanf(str, "%d", &my_xnee_atio_macro_function_ret) == 1) \
             xnee_macro_in_ret_val = func(xd, my_xnee_atio_macro_function_ret); \
          else {\
                xnee_macro_in_ret_val = XNEE_WRONG_PARAMS ; \
               }\
        }
 




int
xnee_str2int(xnee_data *xd, char *str);

char **
xnee_str2strptr (char *tmp, int fill_option);

void
xnee_print_strptr(xnee_data *xd, char **strptr);

int
xnee_free_strptr(char **strptr);


int
xnee_boolstr2int(xnee_data *xd, char *str);

int 
xnee_record_from_data_display(xnee_data *xd);

Display *
xnee_get_display_for_recordcontext(xnee_data *xd);

int
xnee_get_xinput_event_base(Display *dpy);

int 
xnee_check_true(char *expr);

int 
xnee_check_false(char *expr);

int
xnee_is_screen_ok(xnee_data *xd, int screen);



#endif /*  XNEE_XNEE_UTILS_H */