~noskcaj/ubuntu/trusty/libextractor/merge

« back to all changes in this revision

Viewing changes to src/common/pack.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-11-17 20:27:32 UTC
  • mfrom: (1.10.4 upstream) (5.2.5 sid)
  • Revision ID: james.westby@ubuntu.com-20091117202732-ipm2h3gks5bdw2vx
Tags: 0.5.23+dfsg-3
* Building against libltdl7.
* Updating to standards version 3.8.3.
* Adding maintainer homepage field to control.
* Marking maintainer homepage field to be also included in binary
  packages and changelog.
* Adding README.source.
* Simplifying autotools handling in rules.
* Updating README.source.
* Moving maintainer homepage field from control to copyright.
* Dropping la files.
* Simplyfing debhelper install files.
* Bumping versioned build-depends on debhelper.
* Adding depends to dpkg install info.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Catlib Copyright Notice
 
3
 
 
4
The author of this software is Christopher Adam Telfer
 
5
Copyright (c) 1998, 1999, 2000, 2001, 2002
 
6
by Christopher Adam Telfer.  All Rights Reserved.
 
7
 
 
8
Permission to use, copy, modify, and distribute this software for any
 
9
purpose without fee is hereby granted, provided that the above copyright
 
10
notice, this paragraph, and the following two paragraphs appear in all
 
11
copies, modifications, and distributions.
 
12
 
 
13
IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
 
14
SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS,
 
15
ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
 
16
THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
17
 
 
18
THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
 
19
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
 
20
PARTICULAR PURPOSE.  THE SOFTWARE AND ACCOMPANYING DOCUMENTATION, IF
 
21
ANY, PROVIDED HEREUNDER IS PROVIDED "AS IS".   THE AUTHOR HAS NO
 
22
OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
 
23
MODIFICATIONS.
 
24
 
 
25
 
 
26
*/
 
27
 
 
28
#ifndef __CAT_PACK_H
 
29
#define __CAT_PACK_H
 
30
 
 
31
/*
 
32
   "bhwAcslPBHWCSL"
 
33
 
 
34
   Small letters: do not convert (not implemented for arrays and P)
 
35
   Captial letters: convert from network byte order to host byte order
 
36
 
 
37
   b - byte
 
38
   h - half-word
 
39
   w - word
 
40
   a - array (32-byte unsigned long + that many bytes)
 
41
   c - signed 8 bit value
 
42
   s - signed 16 bit value
 
43
   l - signed 32 bit value
 
44
   p - (unpack only) value is a pointer to a pointer.  Generate the buffer
 
45
       to hold the data.
 
46
 */
 
47
 
 
48
int EXTRACTOR_common_cat_pack(void * buf, const char *fmt, ... );
 
49
 
 
50
int EXTRACTOR_common_cat_unpack(const void * buf, const char *fmt, ... );
 
51
 
 
52
struct cat_bvec {
 
53
  unsigned long len;
 
54
  void * data;
 
55
};
 
56
 
 
57
#endif /* __CAT_PACK_H */
 
58
 
 
59