This file is indexed.

/usr/include/avro/resolver.h is in libavro-dev 1.8.2-1.

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
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to you under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 * implied.  See the License for the specific language governing
 * permissions and limitations under the License.
 */

#ifndef AVRO_RESOLVER_H
#define AVRO_RESOLVER_H
#ifdef __cplusplus
extern "C" {
#define CLOSE_EXTERN }
#else
#define CLOSE_EXTERN
#endif

#include <avro/schema.h>
#include <avro/value.h>

/*
 * A <i>resolved value</i> is a special kind of value that knows how to
 * implement Avro's schema resolution rules to translate between a
 * writer schema and a reader schema.  A resolved value doesn't store or
 * process data itself; instead, it wraps an existing value instance.
 *
 * There are two resolved value classes.  In the first (@ref
 * avro_resolved_writer_t), the resolved value is an instance of the
 * writer schema, and wraps an instance of the reader schema.  This is
 * used, for instance, when reading from an Avro data file; you want the
 * end result to be a reader schema value, and the resolved value allows
 * the file reader to ignore the schema resolution and simply fill in
 * the values of the writer schema.  You can only set the values of a
 * resolved writer; you must use the original wrapped value to read.
 *
 * With other class (@ref avro_resolved_reader_t), the resolved value is
 * an instance of the reader schema, and wraps an instance of the writer
 * schema.  This is used when resolving an existing Avro value to
 * another schema; you've already got the value in the original (writer)
 * schema, and want to transparently treat it as if it were an instance
 * of the new (reader) schema.  You can only read the values of a
 * resolved reader; you must use the original wrapped value to write.
 *
 * For both classes, the “self” pointer of the resolved value is an
 * avro_value_t pointer, which points at the wrapped value.
 */


/**
 * Create a new resolved writer implementation for the given writer and
 * reader schemas.
 */

avro_value_iface_t *
avro_resolved_writer_new(avro_schema_t writer_schema,
			 avro_schema_t reader_schema);

/**
 * Creates a new resolved writer value.
 */

int
avro_resolved_writer_new_value(avro_value_iface_t *iface,
			       avro_value_t *value);

/**
 * Sets the wrapped value for a resolved writer.  This must be an
 * instance of the reader schema.  We create our own reference to the
 * destination value.
 */

void
avro_resolved_writer_set_dest(avro_value_t *resolved,
			      avro_value_t *dest);


/**
 * Clears the wrapped value for a resolved writer.
 */

void
avro_resolved_writer_clear_dest(avro_value_t *resolved);


/**
 * Create a new resolved reader implementation for the given writer and
 * reader schemas.
 */

avro_value_iface_t *
avro_resolved_reader_new(avro_schema_t writer_schema,
			 avro_schema_t reader_schema);

/**
 * Creates a new resolved reader value.
 */

int
avro_resolved_reader_new_value(avro_value_iface_t *iface,
			       avro_value_t *value);

/**
 * Sets the wrapped value for a resolved reader.  This must be an
 * instance of the reader schema.  We create our own reference to the
 * source value.
 */

void
avro_resolved_reader_set_source(avro_value_t *resolved,
				avro_value_t *dest);


/**
 * Clears the wrapped value for a resolved reader.
 */

void
avro_resolved_reader_clear_source(avro_value_t *resolved);

CLOSE_EXTERN
#endif