X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=formats%2Fctf%2Fmetadata%2Fctf-scanner.h;h=012a4f3b9a6cb5d2a074a9f127c124c463643298;hb=2f0c6a5248bb8c00adf37648c301e87f63709408;hp=4de343027b522e788fbda44365f0082674d5114f;hpb=3122e6f075647374e7a98ae9501d100de8d004a9;p=babeltrace.git diff --git a/formats/ctf/metadata/ctf-scanner.h b/formats/ctf/metadata/ctf-scanner.h index 4de34302..012a4f3b 100644 --- a/formats/ctf/metadata/ctf-scanner.h +++ b/formats/ctf/metadata/ctf-scanner.h @@ -1,6 +1,22 @@ #ifndef _CTF_SCANNER_H #define _CTF_SCANNER_H +/* + * ctf-scanner.h + * + * Copyright 2011-2012 - Mathieu Desnoyers + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + */ + #include #include "ctf-ast.h" @@ -20,7 +36,7 @@ struct ctf_scanner { struct ctf_ast *ast; struct ctf_scanner_scope root_scope; struct ctf_scanner_scope *cs; - struct bt_list_head allocated_strings; + struct objstack *objstack; }; struct ctf_scanner *ctf_scanner_alloc(FILE *input); @@ -33,6 +49,7 @@ struct ctf_ast *ctf_scanner_get_ast(struct ctf_scanner *scanner) return scanner->ast; } +BT_HIDDEN int is_type(struct ctf_scanner *scanner, const char *id); #endif /* _CTF_SCANNER_H */