Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zzha zzha
OpenXG-RAN
Commits
f0a70414
Commit
f0a70414
authored
Apr 27, 2016
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add get_format to database
parent
8e7ee86c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
common/utils/T/tracer/database.c
common/utils/T/tracer/database.c
+17
-0
common/utils/T/tracer/database.h
common/utils/T/tracer/database.h
+12
-0
No files found.
common/utils/T/tracer/database.c
View file @
f0a70414
...
...
@@ -409,3 +409,20 @@ void on_off(void *_d, char *item, int *a, int onoff)
exit
(
1
);
}
}
database_event_format
get_format
(
void
*
_database
,
int
event_id
)
{
database
*
d
=
_database
;
database_event_format
ret
;
if
(
event_id
<
0
||
event_id
>=
d
->
isize
)
{
printf
(
"%s:%d: bad event ID (%d)
\n
"
,
__FILE__
,
__LINE__
,
event_id
);
abort
();
}
ret
.
type
=
d
->
i
[
event_id
].
arg_type
;
ret
.
name
=
d
->
i
[
event_id
].
arg_name
;
ret
.
count
=
d
->
i
[
event_id
].
asize
;
return
ret
;
}
common/utils/T/tracer/database.h
View file @
f0a70414
...
...
@@ -8,4 +8,16 @@ void list_ids(void *database);
void
list_groups
(
void
*
database
);
void
on_off
(
void
*
d
,
char
*
item
,
int
*
a
,
int
onoff
);
/****************************************************************************/
/* get format of an event */
/****************************************************************************/
typedef
struct
{
char
**
type
;
char
**
name
;
int
count
;
}
database_event_format
;
database_event_format
get_format
(
void
*
database
,
int
event_id
);
#endif
/* _DATABASE_H_ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment