lp-type-lookup.h 768 Bytes
Newer Older
1
/*
Philip Carns's avatar
Philip Carns committed
2
 * Copyright (C) 2013 University of Chicago.
3
 * See COPYRIGHT notice in top-level directory.
Philip Carns's avatar
Philip Carns committed
4
 *
5 6
 */

Philip Carns's avatar
Philip Carns committed
7

8 9 10
#ifndef LP_TYPE_LOOKUP_H
#define LP_TYPE_LOOKUP_H

Jonathan Jenkins's avatar
Jonathan Jenkins committed
11 12 13 14
#ifdef __cplusplus
extern "C" {
#endif

15 16
#include "ross.h"

Jonathan Jenkins's avatar
Jonathan Jenkins committed
17 18
/* look up the lp type registered through lp_type_register. Mostly used
 * internally */
19
const tw_lptype* lp_type_lookup(const char* name);
Jonathan Jenkins's avatar
Jonathan Jenkins committed
20 21

/* register an LP with CODES/ROSS */
22 23
void lp_type_register(const char* name, const tw_lptype* type);

24 25
void trace_type_register(const char* name, const st_trace_type* type);
const st_trace_type* trace_type_lookup(const char* name);
Jonathan Jenkins's avatar
Jonathan Jenkins committed
26 27 28 29
#ifdef __cplusplus
}
#endif

30 31 32 33 34 35 36 37 38 39
#endif /* LP_TYPE_LOOKUP_H */

/*
 * Local variables:
 *  c-indent-level: 4
 *  c-basic-offset: 4
 * End:
 *
 * vim: ft=c ts=8 sts=4 sw=4 expandtab
 */