This file is indexed.

/usr/include/ctpl/ctpl-environ.h is in libctpl-dev 0.3.3.dfsg-4.

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
/* 
 * 
 * Copyright (C) 2009-2011 Colomban Wendling <ban@herbesfolles.org>
 *
 * 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
 * (at your option) 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, see <http://www.gnu.org/licenses/>.
 * 
 */

#if ! defined (H_CTPL_H_INSIDE) && ! defined (CTPL_COMPILATION)
# error "Only <ctpl/ctpl.h> can be included directly."
#endif

#ifndef H_CTPL_ENVIRON_H
#define H_CTPL_ENVIRON_H

#include <glib.h>
#include "ctpl-value.h"
#include "ctpl-input-stream.h"

G_BEGIN_DECLS


/**
 * CTPL_ENVIRON_ERROR:
 * 
 * Error domain of CtplEnviron.
 */
#define CTPL_ENVIRON_ERROR  (ctpl_environ_error_quark ())

/**
 * CtplEnvironError:
 * @CTPL_ENVIRON_ERROR_LOADER_MISSING_SYMBOL:     Missing symbol in environment
 *                                                description
 * @CTPL_ENVIRON_ERROR_LOADER_MISSING_VALUE:      Missing value in environment
 *                                                description
 * @CTPL_ENVIRON_ERROR_LOADER_MISSING_SEPARATOR:  Missing separator in
 *                                                environment description
 * @CTPL_ENVIRON_ERROR_FAILED:                    An error occurred
 * 
 * Errors in the %CTPL_ENVIRON_ERROR domain.
 */
typedef enum _CtplEnvironError
{
  CTPL_ENVIRON_ERROR_LOADER_MISSING_SYMBOL,
  CTPL_ENVIRON_ERROR_LOADER_MISSING_VALUE,
  CTPL_ENVIRON_ERROR_LOADER_MISSING_SEPARATOR,
  CTPL_ENVIRON_ERROR_FAILED
} CtplEnvironError;

typedef struct _CtplEnviron CtplEnviron;
/**
 * CtplEnvironForeachFunc:
 * @env: The #CtplEnviron on which the function was called
 * @symbol: The current symbol
 * @value: The symbol's value
 * @user_data: User data passed to ctpl_environ_foreach()
 * 
 * User function for ctpl_environ_foreach().
 * 
 * Returns: %TRUE to continue enumerating environ, %FALSE to stop.
 */
typedef gboolean (*CtplEnvironForeachFunc)  (CtplEnviron     *env,
                                             const gchar     *symbol,
                                             const CtplValue *value,
                                             gpointer         user_data);


GQuark            ctpl_environ_error_quark      (void) G_GNUC_CONST;
CtplEnviron      *ctpl_environ_new              (void);
CtplEnviron      *ctpl_environ_ref              (CtplEnviron *env);
void              ctpl_environ_unref            (CtplEnviron *env);
const CtplValue  *ctpl_environ_lookup           (const CtplEnviron *env,
                                                 const gchar       *symbol);
void              ctpl_environ_push             (CtplEnviron     *env,
                                                 const gchar     *symbol,
                                                 const CtplValue *value);
void              ctpl_environ_push_int         (CtplEnviron     *env,
                                                 const gchar     *symbol,
                                                 glong            value);
void              ctpl_environ_push_float       (CtplEnviron     *env,
                                                 const gchar      *symbol,
                                                 gdouble           value);
void              ctpl_environ_push_string      (CtplEnviron     *env,
                                                 const gchar     *symbol,
                                                 const gchar     *value);
gboolean          ctpl_environ_pop              (CtplEnviron *env,
                                                 const gchar *symbol,
                                                 CtplValue  **poped_value);
void              ctpl_environ_foreach          (CtplEnviron           *env,
                                                 CtplEnvironForeachFunc func,
                                                 gpointer               user_data);
void              ctpl_environ_merge            (CtplEnviron        *env,
                                                 const CtplEnviron  *source,
                                                 gboolean            merge_symbols);
gboolean          ctpl_environ_add_from_stream  (CtplEnviron     *env,
                                                 CtplInputStream *stream,
                                                 GError         **error);
gboolean          ctpl_environ_add_from_string  (CtplEnviron  *env,
                                                 const gchar  *string,
                                                 GError      **error);
gboolean          ctpl_environ_add_from_path    (CtplEnviron *env,
                                                 const gchar *path,
                                                 GError     **error);


G_END_DECLS

#endif /* guard */