This file is indexed.

/usr/include/pi-notepad.h is in libpisock-dev 0.12.5-dfsg-2.

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
/*
 * $Id: pi-notepad.h,v 1.8 2006/10/17 13:24:07 desrod Exp $
 *
 * pi-notepad.h: Palm Notepad application support
 *
 * 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_NOTEPAD_H_
#define _PILOT_NOTEPAD_H_

#include "pi-appinfo.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef struct NotePadAppInfo {
   int 	dirty,
     sortByPriority;
   struct 	CategoryAppInfo category;
} NotePadAppInfo_t;

typedef struct {
   unsigned short sec;
   unsigned short min;
   unsigned short hour;
   unsigned short day;
   unsigned short month; 
   unsigned short year;
   unsigned short s;		/* Haven't figured this one out - Angus */
} noteDate_t;

typedef struct { 
   noteDate_t  createDate;
   noteDate_t  changeDate;
   unsigned short flags;      
} noteHdr_t; 

/* flags */
#define NOTEPAD_FLAG_BODY		0x01
#define NOTEPAD_FLAG_NAME		0x02
#define NOTEPAD_FLAG_ALARM		0x04

/* Actions */
#define NOTEPAD_ACTION_OUTPUT		0x01
#define NOTEPAD_ACTION_LIST		0x02
   
/* Output type */
#define NOTE_OUT_PPM			0x01
#define NOTE_OUT_PNG			0x02
   
/* Data Type */
#define NOTEPAD_DATA_UNCOMPRESSED	0x00	/* OS 4 notepad? */
#define NOTEPAD_DATA_BITS		0x01	/* OS 4 notepad */
#define NOTEPAD_DATA_PNG		0x02	/* OS 5 notepad */
   
/* Note structure
 When flags = 0x03
   noteHdr_t
   char name[0];	NULL termniated and 1 padded to 2 byte boundary
   noteBody_t
 When flags = 0x07
   noteHdr_t
   noteDate_t alarmTime
   char name[0];	NULL termniated and 1 padded to 2 byte boundary
   noteBody_t
*/
			   
typedef struct body {
   unsigned long bodyLen;
   unsigned long width;
   unsigned long height;
   unsigned long l1;		/* 1 ul x ?			*/
   unsigned long dataType;
   unsigned int dataLen;	/* length of dataRecs in bytes	*/
} body_t;
   
typedef struct dataRec {
   unsigned char  repeat;
   unsigned char  data;
} dataRec_t;

typedef struct NotePad {
   noteDate_t  createDate;
   noteDate_t  changeDate;
   unsigned short flags;      
   char *name;
   noteDate_t  alarmDate;
   body_t   body;
   dataRec_t   *data;
} NotePad_t;

void free_NotePad( NotePad_t *a );
int unpack_NotePad(NotePad_t *a, unsigned char *buffer, size_t len);
int unpack_NotePadAppInfo(NotePadAppInfo_t *ai, unsigned char *record,
	size_t len);
int pack_NotePad(NotePad_t *a, unsigned char *buffer, size_t len);
int pack_NotePadAppInfo(NotePadAppInfo_t *ai, unsigned char *record,
	size_t len);

#ifdef __cplusplus
}
#endif				/*__cplusplus*/

#endif