/usr/include/libolecf/definitions.h is in libolecf-dev 20160107-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 | /*
* Definitions for libolecf
*
* Copyright (C) 2008-2016, Joachim Metz <joachim.metz@gmail.com>
*
* Refer to AUTHORS for acknowledgements.
*
* This software is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This software 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 Lesser General Public License
* along with this software. If not, see <http://www.gnu.org/licenses/>.
*/
#if !defined( _LIBOLECF_DEFINITIONS_H )
#define _LIBOLECF_DEFINITIONS_H
#include <libolecf/types.h>
#define LIBOLECF_VERSION 20160107
/* The version string
*/
#define LIBOLECF_VERSION_STRING "20160107"
/* The file access flags
* bit 1 set to 1 for read access
* bit 2 set to 1 for write access
* bit 3-8 not used
*/
#define LIBOLECF_ACCESS_FLAG_READ 0x01
/* Reserved: not supported yet */
#define LIBOLECF_ACCESS_FLAG_WRITE 0x02
/* The file access macros
*/
#define LIBOLECF_OPEN_READ ( LIBOLECF_ACCESS_FLAG_READ )
/* Reserved: not supported yet */
#define LIBOLECF_OPEN_WRITE ( LIBOLECF_ACCESS_FLAG_WRITE )
/* Reserved: not supported yet */
#define LIBOLECF_OPEN_READ_WRITE ( LIBOLECF_ACCESS_FLAG_READ | LIBOLECF_ACCESS_FLAG_WRITE )
/* The item separator
*/
#define LIBOLECF_SEPARATOR '\\'
/* The endian definitions
*/
enum LIBOLECF_ENDIAN
{
LIBOLECF_ENDIAN_BIG = (int) 'b',
LIBOLECF_ENDIAN_LITTLE = (int) 'l'
};
/* The item type definitions
*/
enum LIBOLECF_ITEM_TYPES
{
LIBOLECF_ITEM_TYPE_EMPTY = 0x00,
LIBOLECF_ITEM_TYPE_STORAGE = 0x01,
LIBOLECF_ITEM_TYPE_STREAM = 0x02,
LIBOLECF_ITEM_TYPE_LOCK_BYTES = 0x03,
LIBOLECF_ITEM_TYPE_PROPERTY = 0x04,
LIBOLECF_ITEM_TYPE_ROOT_STORAGE = 0x05
};
/* The summary information property identifiers (PIDs)
* Class identifier: f29f85e0-4ff9-1068-ab91-08002b27b3d9
*/
enum LIBOLECF_SUMMARY_INFORMATION_PROPERTY_IDENTIFIERS
{
LIBOLECF_SUMMARY_INFORMATION_PID_CODEPAGE = 0x00000001UL,
LIBOLECF_SUMMARY_INFORMATION_PID_TITLE = 0x00000002UL,
LIBOLECF_SUMMARY_INFORMATION_PID_SUBJECT = 0x00000003UL,
LIBOLECF_SUMMARY_INFORMATION_PID_AUTHOR = 0x00000004UL,
LIBOLECF_SUMMARY_INFORMATION_PID_KEYWORDS = 0x00000005UL,
LIBOLECF_SUMMARY_INFORMATION_PID_COMMENTS = 0x00000006UL,
LIBOLECF_SUMMARY_INFORMATION_PID_TEMPLATE = 0x00000007UL,
LIBOLECF_SUMMARY_INFORMATION_PID_LAST_SAVED_BY = 0x00000008UL,
LIBOLECF_SUMMARY_INFORMATION_PID_REVISION_NUMBER = 0x00000009UL,
LIBOLECF_SUMMARY_INFORMATION_PID_EDITING_TIME = 0x0000000aUL,
LIBOLECF_SUMMARY_INFORMATION_PID_LAST_PRINTED_TIME = 0x0000000bUL,
LIBOLECF_SUMMARY_INFORMATION_PID_CREATION_TIME = 0x0000000cUL,
LIBOLECF_SUMMARY_INFORMATION_PID_LAST_WRITTEN_TIME = 0x0000000dUL,
LIBOLECF_SUMMARY_INFORMATION_PID_NUMBER_OF_PAGES = 0x0000000eUL,
LIBOLECF_SUMMARY_INFORMATION_PID_NUMBER_OF_WORDS = 0x0000000fUL,
LIBOLECF_SUMMARY_INFORMATION_PID_NUMBER_OF_CHARACTERS = 0x00000010UL,
LIBOLECF_SUMMARY_INFORMATION_PID_THUMBNAIL = 0x00000011UL,
LIBOLECF_SUMMARY_INFORMATION_PID_APPLICATION_NAME = 0x00000012UL,
LIBOLECF_SUMMARY_INFORMATION_PID_SECURITY = 0x00000013UL
};
/* The document summary information property identifiers
* Class identifier: d5cdd502-2e9c-101b-9397-08002b2cf9ae
*/
enum LIBOLECF_DOCUMENT_SUMMARY_INFORMATION_PROPERTY_IDENTIFIERS
{
LIBOLECF_DOCUMENT_SUMMARY_INFORMATION_PID_CODEPAGE = 0x00000001UL,
LIBOLECF_DOCUMENT_SUMMARY_INFORMATION_PID_CATEGORY = 0x00000002UL,
LIBOLECF_DOCUMENT_SUMMARY_INFORMATION_PID_PRESENTATION_TARGET = 0x00000003UL,
LIBOLECF_DOCUMENT_SUMMARY_INFORMATION_PID_BYTE_COUNT = 0x00000004UL,
LIBOLECF_DOCUMENT_SUMMARY_INFORMATION_PID_LINE_COUNT = 0x00000005UL,
LIBOLECF_DOCUMENT_SUMMARY_INFORMATION_PID_PARAGRAPH_COUNT = 0x00000006UL,
LIBOLECF_DOCUMENT_SUMMARY_INFORMATION_PID_SLIDE_COUNT = 0x00000007UL,
LIBOLECF_DOCUMENT_SUMMARY_INFORMATION_PID_NOTE_COUNT = 0x00000008UL,
LIBOLECF_DOCUMENT_SUMMARY_INFORMATION_PID_HIDDEN_SLIDE_COUNT = 0x00000009UL,
LIBOLECF_DOCUMENT_SUMMARY_INFORMATION_PID_MMCLIP_COUNT = 0x0000000aUL,
LIBOLECF_DOCUMENT_SUMMARY_INFORMATION_PID_SCALE = 0x0000000bUL,
LIBOLECF_DOCUMENT_SUMMARY_INFORMATION_PID_HEADING_PAIRS = 0x0000000cUL,
LIBOLECF_DOCUMENT_SUMMARY_INFORMATION_PID_DOCUMENT_PARTS = 0x0000000dUL,
LIBOLECF_DOCUMENT_SUMMARY_INFORMATION_PID_MANAGER = 0x0000000eUL,
LIBOLECF_DOCUMENT_SUMMARY_INFORMATION_PID_COMPANY = 0x0000000fUL,
LIBOLECF_DOCUMENT_SUMMARY_INFORMATION_PID_LINKS_DIRTY = 0x00000010UL
};
#endif
|