Chameleon

Chameleon Svn Source Tree

Root/branches/blackosx/i386/libsaio/aml_generator.h

  • Property svn:executable set to *
1/*
2 * aml_generator.h
3 * Chameleon
4 *
5 * Created by Mozodojo on 20/07/10.
6 * Copyright 2010 mozo. All rights reserved.
7 *
8 */
9
10#ifndef __LIBSAIO_AML_GENERATOR_H
11#define __LIBSAIO_AML_GENERATOR_H
12
13#include "libsaio.h"
14
15enum aml_chunk_type
16{
17AML_CHUNK_NONE= -1,
18AML_CHUNK_ZERO= 0x00,
19AML_CHUNK_ONE= 0x01,
20AML_CHUNK_ALIAS= 0x06,
21AML_CHUNK_NAME= 0x08,
22AML_CHUNK_BYTE= 0x0A,
23AML_CHUNK_WORD= 0x0B,
24AML_CHUNK_DWORD= 0x0C,
25AML_CHUNK_STRING= 0x0D,
26AML_CHUNK_QWORD= 0x0E,
27AML_CHUNK_SCOPE= 0x10,
28AML_CHUNK_PACKAGE= 0x12,
29};
30
31struct aml_chunk
32{
33enum aml_chunk_typeType;
34unsigned longLength;
35char*Buffer;
36struct aml_chunk*Next;
37struct aml_chunk*First;
38struct aml_chunk*Last;
39};
40
41static inline bool aml_isvalidchar(char c)
42{
43return isupper(c) || isdigit(c) || c == '_';
44};
45
46#endif /* !__LIBSAIO_AML_GENERATOR_H */

Archive Download this file

Revision: 223