~ubuntu-branches/ubuntu/quantal/ceph/quantal

« back to all changes in this revision

Viewing changes to wireshark/ceph/types.h

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-07-16 09:56:24 UTC
  • mfrom: (0.3.11)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: package-import@ubuntu.com-20120716095624-azr2w4hbhei1rxmx
Tags: upstream-0.48
ImportĀ upstreamĀ versionĀ 0.48

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef CEPH_WS_TYPES_H
 
2
#define CEPH_WS_TYPES_H
 
3
 
 
4
#ifdef HAVE_CONFIG_H
 
5
# include "config.h"
 
6
#endif
 
7
 
 
8
#include <glib.h>
 
9
 
 
10
// this is needed for ceph_fs to compile in userland
 
11
#ifdef _MSC_VER
 
12
typedef  char                           __s8;
 
13
typedef short                           __s16;
 
14
typedef int                                     __s32;
 
15
typedef __int64                         __s64;
 
16
typedef unsigned char           __u8;
 
17
typedef unsigned short          __u16;
 
18
typedef unsigned int            __u32;
 
19
typedef unsigned __int64        __u64;
 
20
typedef __u16                           __le16;
 
21
typedef __u32                           __le32;
 
22
typedef __u64                           __le64;
 
23
#define __attribute__(x)
 
24
#define O_ACCMODE (O_RDONLY | O_RDWR | O_WRONLY)
 
25
#include <winsock.h>
 
26
#else
 
27
#include <netinet/in.h>
 
28
#include <linux/types.h>
 
29
#endif
 
30
typedef int bool;
 
31
 
 
32
#define le16_to_cpu(x) (x)
 
33
#define le32_to_cpu(x) (x)
 
34
#define le64_to_cpu(x) (x)
 
35
 
 
36
 
 
37
typedef guint32 uint32_t;
 
38
 
 
39
#include <fcntl.h>
 
40
#include <string.h>
 
41
 
 
42
#ifdef _MSC_VER
 
43
#pragma pack(1)
 
44
#endif
 
45
#include "ceph_fs.h"
 
46
#ifdef _MSC_VER
 
47
#pragma pack()
 
48
#endif
 
49
 
 
50
 
 
51
 
 
52
#endif