This file is indexed.

/usr/include/yuma/ncx/getcb.h is in libyuma-dev 2.9-1+b2.

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
/*
 * Copyright (c) 2008 - 2012, Andy Bierman, All Rights Reserved.
 * 
 * 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 _H_getcb
#define _H_getcb

/*  FILE: getcb.h
*********************************************************************
*								    *
*			 P U R P O S E				    *
*								    *
*********************************************************************

    NCX Data Model Get Operation callback handler
    for virtual data that is not stored in a val_value_t tree.

    These callback functions are used to provide temporary
    val_value_t structures that MUST BE FREED by the caller
    after they are used!!!

    The <get> callback function has several sub-mode functions to
    support the retrieval of virtual data, mixed with the real data
    tree of a configuration database.

    Submode 1: GETCB_GET_METAQ

       Retrieve a Queue header of val_value_t structs
       representing the attributes for the specified value node


    Submode x: GETCB_GET_LEAFVAL

      Retrieve the simple value contents of a virtual value leaf node


*********************************************************************
*								    *
*		   C H A N G E	 H I S T O R Y			    *
*								    *
*********************************************************************

date	     init     comment
----------------------------------------------------------------------
16-apr-07    abb      Begun; split out from agt_ps.h

*/

#ifndef _H_ncxconst
#include "ncxconst.h"
#endif

#ifndef _H_rpc
#include "rpc.h"
#endif

#ifndef _H_ses
#include "ses.h"
#endif

#ifndef _H_status
#include "status.h"
#endif

#ifdef __cplusplus
extern "C" {
#endif

/********************************************************************
*								    *
*			 C O N S T A N T S			    *
*								    *
*********************************************************************/


/********************************************************************
*								    *
*			     T Y P E S				    *
*								    *
*********************************************************************/

/* placeholder for expansion modes */
typedef enum getcb_mode_t_ {
    GETCB_NONE,
    GETCB_GET_VALUE
} getcb_mode_t;


/* getcb_fn_t
 *
 * Callback function for agent node get handler 
 * 
 * INPUTS:
 *   scb    == session that issued the get (may be NULL)
 *             can be used for access control purposes
 *   cbmode == reason for the callback
 *   virval == place-holder node in the data model for
 *              this virtual value node
 *   dstval == pointer to value output struct
 *
 * OUTPUTS:
 *  *fil may be adjusted depending on callback reason
 *  *dstval should be filled in, depending on the callback reason
 *
 * RETURNS:
 *    status:
 */
typedef status_t 
    (*getcb_fn_t) (ses_cb_t *scb,
		   getcb_mode_t cbmode,
		   const val_value_t *virval,
		   val_value_t *dstval);

#ifdef __cplusplus
}  /* end extern 'C' */
#endif

#endif	    /* _H_getcb */