From 43d65dc03325bcce8561423b9607f7e114355f7d Mon Sep 17 00:00:00 2001 From: ferbas Date: Wed, 13 Jan 2010 09:41:29 +0000 Subject: initial import git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@545 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../sources/import/SDK/ASNameSpace.h | 117 +++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/ASNameSpace.h (limited to 'Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/ASNameSpace.h') diff --git a/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/ASNameSpace.h b/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/ASNameSpace.h new file mode 100644 index 0000000..cb9bebf --- /dev/null +++ b/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/ASNameSpace.h @@ -0,0 +1,117 @@ +#ifndef __ASNameSpace__ +#define __ASNameSpace__ + +/* + * Name: ASNameSpace.h + * $Revision: 4 $ + * Author: + * Date: + * Purpose: AS Name Space Suite (from Adobe Illustrator). + * + * Copyright (c) 1986-1996 Adobe Systems Incorporated, All Rights Reserved. + * + */ + + +/******************************************************************************* + ** + ** Imports + ** + **/ + +#ifndef __ASTypes__ +#include "ASTypes.h" +#endif + +#ifndef __PlatformPragma__ +#include "PlatformPragma.h" +#endif + +#ifndef __SPStrings__ +#include "SPStrngs.h" +#endif + + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef UNIX_ENV +#pragma PRAGMA_ALIGN_BEGIN +#pragma PRAGMA_IMPORT_BEGIN +#elif defined(HPUX) && defined(__HP_aCC) +HPUX_Pragma (PRAGMA_ALIGN_BEGIN) +#else +_Pragma (PRAGMA_ALIGN_BEGIN) +#endif + + +/******************************************************************************* + ** + ** Constants + ** + **/ + +#define kASNameSpaceSuite "AS Name Space Suite" +#define kASNameSpaceSuiteVersion 2 +#define kASNameSpaceVersion kASNameSpaceSuiteVersion + +#define kASNameSpaceErr 'NAME' + + +/******************************************************************************* + ** + ** Types + ** + **/ + +typedef struct _t_ASNameSpace *ASNameSpaceRef; +typedef struct t_ASDataStream *ASDataStreamRef; + +#if __BUILD_PLUGIN__ +#define kNSMaxNameLength (100) +#define kNSMaxPathLength ((kNSMaxNameLength + 1) * 5) +#define kNSPathSeparator '/' +#endif + + +/******************************************************************************* + ** + ** Suite + ** + **/ + +typedef struct { + + ASErr (*AllocateNameSpace) ( SPStringPoolRef pool, ASNameSpaceRef *space ); + ASErr (*DisposeNameSpace) ( ASNameSpaceRef space ); + + ASErr (*SetValue) ( ASNameSpaceRef space, char *path, char *type, ... ); + ASErr (*GetValue) ( ASNameSpaceRef space, char *path, char *type, ... ); + + ASErr (*GetType) ( ASNameSpaceRef space, char *path, char **type ); + ASErr (*GetChangeCount) ( ASNameSpaceRef space, char *path, long *count ); + ASErr (*RemoveValue) ( ASNameSpaceRef space, char *path ); + ASErr (*CountPaths) ( ASNameSpaceRef space, char *path, long *count ); + ASErr (*GetNthPath) ( ASNameSpaceRef space, char *path, long n, char *nthPath ); + + ASErr (*ParseValue) ( ASNameSpaceRef space, char *path, ASDataStreamRef filter ); + ASErr (*FlushValue) ( ASNameSpaceRef space, char *path, ASDataStreamRef filter ); + +} ASNameSpaceSuite; + + +#ifndef UNIX_ENV +#pragma PRAGMA_IMPORT_END +#pragma PRAGMA_ALIGN_END +#elif defined(HPUX) && defined(__HP_aCC) +HPUX_Pragma (PRAGMA_ALIGN_END) +#else +_Pragma (PRAGMA_ALIGN_END) +#endif + +#ifdef __cplusplus +} +#endif + +#endif -- cgit v1.2.3