-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
05b0444
commit 1937838
Showing
2 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
%module oboe | ||
%{ | ||
#include "oboe_api.h" | ||
#include "oboe_debug.h" | ||
%} | ||
%include "stdint.i" | ||
%include "std_string.i" | ||
|
||
%newobject Metadata::copy; | ||
%newobject Metadata::fromString; | ||
%newobject Metadata::createEvent; | ||
%newobject Metadata::makeRandom; | ||
|
||
%newobject Context::startTrace; | ||
%newobject Context::createEntry; | ||
%newobject Context::createEvent; | ||
%newobject Context::createExit; | ||
%newobject Context::copy; | ||
|
||
%newobject Event::startTrace; | ||
%newobject Event::getMetadata; | ||
|
||
%apply int *OUTPUT { int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, int *type, int *auth, int *status}; | ||
%apply double *OUTPUT { double *bucket_rate, double *bucket_cap}; | ||
%apply std::string *OUTPUT { std::string *status_msg, std::string *auth_msg}; | ||
%apply unsigned int& OUTPUT { unsigned int& counter, unsigned int& rate, unsigned int& source }; | ||
|
||
%include "oboe_debug.h" | ||
%include "oboe_api.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters