bake-bulk.h 694 Bytes
Newer Older
Philip Carns's avatar
Philip Carns committed
1 2 3 4 5 6
/*
 * (C) 2016 The University of Chicago
 * 
 * See COPYRIGHT in top-level directory.
 */

7 8 9
#ifndef __BAKE_BULK_H
#define __BAKE_BULK_H

Shane Snyder's avatar
Shane Snyder committed
10
#include <uuid/uuid.h>
11
#include <stdint.h>
12 13 14 15 16

#ifdef __cplusplus
extern "C" {
#endif

17 18 19 20
/**
 * Persistent, universal, opaque identifier for a BAKE target.
 * Remains constant if instance is opened, closed, or migrated.
 */
21 22 23
typedef struct {
    uuid_t id;
} bake_target_id_t;
24

Philip Carns's avatar
Philip Carns committed
25 26 27
/**
 * Persistent, opaque identifier for a bulk region within a BAKE target.
 */
Philip Carns's avatar
Philip Carns committed
28
#define BAKE_BULK_REGION_ID_DATA_SIZE 24
Philip Carns's avatar
Philip Carns committed
29
typedef struct {
Philip Carns's avatar
Philip Carns committed
30 31
    uint32_t type;
    char data[BAKE_BULK_REGION_ID_DATA_SIZE];
Philip Carns's avatar
Philip Carns committed
32 33
} bake_bulk_region_id_t;

34 35
#ifdef __cplusplus
}
36
#endif
37 38

#endif /* __BAKE_BULK_H */