This file is indexed.

/usr/include/pilotobjects/pilot-expenses.h is in libpilotobjects-dev 0.2.3-1build1.

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
/***************************************************************************
 *            qof-expenses.h
 *
 *  Thu Oct 21 08:18:44 2004
 *  Copyright  2004-2007  Neil Williams  <linux@codehelp.co.uk>
 ****************************************************************************/
/*
    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/>.
 */
/** @addtogroup QOF
	@{ */
/** @addtogroup Exp Expenses

	Like ::DB, Expenses uses UTC time within QOF and sets localtime when
	calling pilot-link code.

	\note pack_Expense still uses the old prototype
	using 0xffff instead of pi_buf->used. exp_pack has
	been modified to set pi_buf->used from the length returned
	by pack_Expense. Other databases already support pi_buffer
	and if expense is updated, this will need to be changed.

	@{ */
/** @file  qof-expenses.h
	@brief QOF expense definitions for pilot-link
	@author Copyright (c) 2004-2007 Neil Williams <linux@codehelp.co.uk>
*/

#ifndef _PQOF_EXPENSES_H
#define _PQOF_EXPENSES_H

#include "pi-expense.h"

#define PILOT_LINK_QOF_EXPENSES "pilot_expenses"
#define EXP_DATE      "expense_date"
#define EXP_TYPE      "type_of_expense"
#define EXP_PAYMENT   "form_of_payment"
#define EXP_CURRENCY  "currency_code"
#define EXP_AMOUNT    "expense_amount"
#define EXP_ATTENDEES "expense_attendees"
#define EXP_NOTE      "expense_note"
#define EXP_CATEGORY  "category"
#define EXP_DISTANCE  "distance_unit"
#define EXP_VENDOR    "expense_vendor"
#define EXP_CITY      "expense_city"
#define EXP_KVP       "currency_lookup"

/** type:  KVP_TYPE_STRING */
#define PQ_CURRENCY_MNEMONIC "expense/currency/mnemonic"
/** type:  KVP_TYPE_STRING */
#define PQ_CURRENCY_SYMBOL   "expense/currency/symbol"
/** type:  KVP_TYPE_GINT64 */
#define PQ_CURRENCY_FRACTION "expense/currency/fraction"

/** Expense Preferences identifier. */
#define PQ_EXPENSE_PREF Expense_Pref

/** Inherited from pilot-link because the exported form using makelong
is not constant. */
#define EXPENSE_CREATOR "exps"

/** \brief Register this object with QOF
*/
gboolean PQExpensesRegister (void);

typedef struct Expense Expense_t;

Expense_t * pq_expense_get_pilot (QofEntity * inst);

void
populate_currencies (void);

gint32
pq_set_currency (QofInstance * inst, gchar * mnemonic);

#endif /* _PQOF_EXPENSES_H */

/** @} */
/** @} */