/usr/include/pi-expense.h is in libpisock-dev 0.12.5-dfsg-2+b3.
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 | /*
* $Id: pi-expense.h,v 1.17 2006/10/17 13:24:07 desrod Exp $
*
* pi-expense.h: definitions for Palm Expense application
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Library General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This library 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 Library
* General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef _PILOT_EXPENSE_H_
#define _PILOT_EXPENSE_H_
#include <time.h>
#include "pi-appinfo.h"
#ifdef __cplusplus
extern "C" {
#endif
#define Expense_Creator makelong("exps")
#define Expense_DB "ExpenseDB"
extern char *ExpenseSortNames[];
extern char *ExpenseDistanceNames[];
extern char *ExpensePaymentNames[];
extern char *ExpenseTypeNames[];
enum ExpenseSort {
esDate, esType
};
enum ExpenseDistance {
edMiles, edKilometers
};
enum ExpensePayment {
epAmEx, epCash, epCheck, epCreditCard, epMasterCard,
epPrepaid, epVISA,
epUnfiled
};
enum ExpenseType {
etAirfare, etBreakfast, etBus, etBusinessMeals,
etCarRental, etDinner,
etEntertainment, etFax, etGas, etGifts, etHotel,
etIncidentals,
etLaundry,
etLimo, etLodging, etLunch, etMileage, etOther, etParking,
etPostage,
etSnack, etSubway, etSupplies, etTaxi, etTelephone, etTips,
etTolls,
etTrain
};
typedef struct ExpenseCustomCurrency {
char name[16];
char symbol[4];
char rate[8];
} ExpenseCustomCurrency_t;
typedef struct Expense {
struct tm date;
enum ExpenseType type;
enum ExpensePayment payment;
int currency;
char *amount;
char *vendor;
char *city;
char *attendees;
char *note;
} Expense_t;
typedef struct ExpenseAppInfo {
struct CategoryAppInfo category;
enum ExpenseSort sortOrder;
struct ExpenseCustomCurrency currencies[4];
} ExpenseAppInfo_t;
#define Expense_Pref 1
typedef struct ExpensePref {
int currentCategory;
int defaultCurrency;
int attendeeFont;
int showAllCategories;
int showCurrency;
int saveBackup;
int allowQuickFill;
enum ExpenseDistance unitOfDistance;
int currencies[5];
int unknown[2];
int noteFont;
} ExpensePref_t;
extern void free_Expense
PI_ARGS((struct Expense *));
extern int unpack_Expense
PI_ARGS((struct Expense *, unsigned char *record, int len));
extern int pack_Expense
PI_ARGS((struct Expense *, unsigned char *record, int len));
extern int unpack_ExpensePref
PI_ARGS((struct ExpensePref *, unsigned char *record, int len));
extern int pack_ExpensePref
PI_ARGS((struct ExpensePref *, unsigned char *record, int len));
extern int unpack_ExpenseAppInfo
PI_ARGS((struct ExpenseAppInfo *, unsigned char *AppInfo, size_t len));
extern int pack_ExpenseAppInfo
PI_ARGS((struct ExpenseAppInfo *, unsigned char *AppInfo, size_t len));
#ifdef __cplusplus
}
#endif
#endif /* _PILOT_EXPENSE_H_ */
|