icd-spv.h revision 96cd795bb585711057cd90d37a2251419384c937
1c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter/*
2c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter *
38a17da586c0f31c72aefe229449d55ea18682be9Courtney Goeltzenleuchter * Copyright (C) 2015 Valve Corporation
4c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter *
5c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter * Permission is hereby granted, free of charge, to any person obtaining a
6c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter * copy of this software and associated documentation files (the "Software"),
7c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter * to deal in the Software without restriction, including without limitation
8c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter * and/or sell copies of the Software, and to permit persons to whom the
10c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter * Software is furnished to do so, subject to the following conditions:
11c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter *
12c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter * The above copyright notice and this permission notice shall be included
13c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter * in all copies or substantial portions of the Software.
14c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter *
15c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
18c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter * DEALINGS IN THE SOFTWARE.
2244e423660deab562665c4e173e43a248f5c1848fChia-I Wu *
2396cd795bb585711057cd90d37a2251419384c937Courtney Goeltzenleuchter * Author: Cody Northrop <cody@lunarg.com>
2496cd795bb585711057cd90d37a2251419384c937Courtney Goeltzenleuchter *
25c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter */
26c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter
27acfb0491b89d57c3915f661edaad114d64d87386Cody Northrop#ifndef ICD_SPV_H
28acfb0491b89d57c3915f661edaad114d64d87386Cody Northrop#define ICD_SPV_H
29c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter
304115c8991c42419cca0d2613cb8c033b7566cad7Chia-I Wu#include <stdint.h>
31c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter
32acfb0491b89d57c3915f661edaad114d64d87386Cody Northrop#define ICD_SPV_MAGIC   0x07230203
33acfb0491b89d57c3915f661edaad114d64d87386Cody Northrop#define ICD_SPV_VERSION 99
344115c8991c42419cca0d2613cb8c033b7566cad7Chia-I Wu
35acfb0491b89d57c3915f661edaad114d64d87386Cody Northropstruct icd_spv_header {
364115c8991c42419cca0d2613cb8c033b7566cad7Chia-I Wu    uint32_t magic;
374115c8991c42419cca0d2613cb8c033b7566cad7Chia-I Wu    uint32_t version;
3852ec336a8c935015855a25116ae22a186e71f28aCourtney Goeltzenleuchter    uint32_t gen_magic;  // Generator's magic number
39c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter};
40c6438002bc31420c1ab52978a99515fb132b34f8Courtney Goeltzenleuchter
41acfb0491b89d57c3915f661edaad114d64d87386Cody Northrop#endif /* ICD_SPV_H */
42