root/WizardsToolkit/trunk/wizard/blob-private.h

Revision 1, 2.0 KB (checked in by cristy, 3 months ago)


Line 
1/*
2  Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization
3  dedicated to making software imaging solutions freely available.
4
5  You may not use this file except in compliance with the License.
6  obtain a copy of the License at
7
8    http://www.wizards-toolkit.org/script/license.php
9
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15
16  Wizard's Toolkit Binary Large OBjects Methods.
17*/
18#ifndef _WIZARDSTOOLKIT_BLOB_PRIVATE_H
19#define _WIZARDSTOOLKIT_BLOB_PRIVATE_H
20
21#if defined(__cplusplus) || defined(c_plusplus)
22extern "C" {
23#endif
24
25#include <wizard/blob.h>
26
27typedef enum
28{
29  UndefinedBlobMode,
30  ReadBlobMode,
31  ReadBinaryBlobMode,
32  WriteBlobMode,
33  WriteBinaryBlobMode
34} BlobMode;
35
36extern WizardExport BlobInfo
37  *DestroyBlob(BlobInfo *),
38  *OpenBlob(const char *,const BlobMode,const WizardBooleanType,
39    ExceptionInfo *);
40
41extern WizardExport const char
42  *GetBlobFilename(const BlobInfo *);
43
44extern WizardExport const struct stat
45  *GetBlobProperties(const BlobInfo *);
46
47extern WizardExport int
48  EOFBlob(BlobInfo *),
49  ReadBlobByte(BlobInfo *),
50  SyncBlob(BlobInfo *);
51
52extern WizardExport ssize_t
53  ReadBlob(BlobInfo *,const size_t,unsigned char *),
54  ReadBlobChunk(BlobInfo *,const size_t,unsigned char *),
55  WriteBlob(BlobInfo *,const size_t,const unsigned char *),
56  WriteBlobByte(BlobInfo *,const unsigned char),
57  WriteBlobChunk(BlobInfo *,const size_t,const unsigned char *),
58  WriteBlobString(BlobInfo *,const char *);
59
60extern WizardExport WizardBooleanType
61  CloseBlob(BlobInfo *),
62  SetBlobExtent(BlobInfo *,const WizardSizeType);
63
64extern WizardExport WizardOffsetType
65  TellBlob(const BlobInfo *);
66
67extern WizardExport WizardSizeType
68  GetBlobSize(BlobInfo *);
69
70#if defined(__cplusplus) || defined(c_plusplus)
71}
72#endif
73
74#endif
Note: See TracBrowser for help on using the browser.