This file is indexed.

/usr/include/avis/elvin_uri.h is in libavis-dev 1.2.4-9.

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
/*
 *  Avis Elvin client library for C.
 *
 *  Copyright (C) 2008 Matthew Phillips <avis@mattp.name>
 *
 *  This program is free software; you can redistribute it and/or
 *  modify it under the terms of version 3 of the GNU Lesser General
 *  Public License 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 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/>.
 */
/** \file
 * Elvin URI handling.
 */
#ifndef AVIS_ELVIN_URI_H_
#define AVIS_ELVIN_URI_H_

#include <avis/attributes.h>
#include <avis/arrays.h>
#include <avis/stdtypes.h>
#include <avis/errors.h>
#include <avis/defs.h>

AVIS_PUBLIC_DATA
char * _elvin_uri_default_protocol [3];

#define DEFAULT_URI_PROTOCOL (_elvin_uri_default_protocol)

/**
 * A URI referring to an Elvin router endpoint.
 *
 * @see elvin_uri_from_string()
 * @see elvin_open_uri().
 */
typedef struct
{
  char *       host;
  uint16_t     port;
  uint16_t     version_major;
  uint16_t     version_minor;

  /**
   * Connection options in URI. e.g. "elvin://host?name1=value1;name2=value2".
   * These are currently not used by the client.
   */
  Attributes * options;

  /**
   * The 3-element protocol stack array. e.g. "elvin:/tcp,none,ssl/host" gives
   * protocol [0] == "tcp", protocol [1] == "none", protocol [2] == "ssl".
   * Can also use "secure" in place of "tcp,none,ssl".
   */
  char **      protocol;
} ElvinURI;

/**
 * Parse a URI pointing to an Elvin router endpoint.
 *
 * @param uri The URI to initialise.
 * @param uri_string The URI in text form.
 * @param error The error info.
 *
 * Example URI's:
 *
 * <pre>
 * elvin://host
 * elvin://host:port
 * elvin:/xdr,none,ssl/host:port
 * elvin:4.1/xdr,none,ssl/host:port
 * elvin:4.1/xdr,none,ssl/host:port?n1=v1;n2=v2
 * </pre>
 *
 * @see elvin_uri_free()
 */
AVIS_PUBLIC
bool elvin_uri_from_string (ElvinURI *uri, const char *uri_string,
                            ElvinError *error);

/**
 * Free any resources allocated to a URI.
 */
AVIS_PUBLIC
void elvin_uri_free (ElvinURI *uri);

#endif /*AVIS_ELVIN_URI_H_*/