Statistics
| Branch: | Revision:

grapes / src / Chunkiser / chunkiser_attrib.c @ 59e03a8f

History | View | Annotate | Download (404 Bytes)

1
/** @file chunkiser_attrib.c
2
 *
3
 */
4
 
5
#include "chunkiser_attrib.h"
6

    
7
inline void chunk_attributes_chunker_init(struct chunk_attributes_chunker *ca)
8
{
9
  ca->magic = 0x11;
10
}
11

    
12
inline int chunk_attributes_chunker_verify(void *attr, int attr_size)
13
{
14
  struct chunk_attributes_chunker *ca = attr;
15

    
16
  if (attr_size != sizeof(*ca)) {
17
    return 0;
18
  }
19
  if (ca->magic != 0x11) {
20
    return 0;
21
  }
22

    
23
  return 1;
24
}