projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
manpage: Add babeltrace-log.1
[babeltrace.git]
/
types
/
string.c
diff --git
a/types/string.c
b/types/string.c
index 1999cffdb0b4ff188c706bd16a5cc96cab15e8dc..bff569db93bb11118b0904d48fcc5f1454623863 100644
(file)
--- a/
types/string.c
+++ b/
types/string.c
@@
-3,7
+3,9
@@
*
* BabelTrace - String Type Converter
*
*
* BabelTrace - String Type Converter
*
- * Copyright 2010, 2011 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ * Copyright 2010-2011 EfficiOS Inc. and Linux Foundation
+ *
+ * Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@
-97,3
+99,13
@@
void _string_definition_free(struct definition *definition)
g_free(string->value);
g_free(string);
}
g_free(string->value);
g_free(string);
}
+
+char *get_string(struct definition *field)
+{
+ struct definition_string *string_definition =
+ container_of(field, struct definition_string, p);
+
+ assert(string_definition->value != NULL);
+
+ return string_definition->value;
+}
This page took
0.025815 seconds
and
4
git commands to generate.