This is the interface for a ranges plugin. Plugin developers should include ranges/PluginInterface.hpp and implement all functions listed here.
◆ bactria_ranges_create_event()
auto bactria_ranges_create_event |
( |
std::uint32_t |
color, |
|
|
char const * |
cat_name, |
|
|
std::uint32_t |
cat_id |
|
) |
| -> void * |
|
noexcept |
Create an event handle.
This function creates a plugin-specific event handle. This is internally used by bactria::Event to communicate with the plugin. Each bactria::Event encapsulates its own event handle.
- Parameters
-
[in] | color | The color of the event (as it should appear on the visualizer). |
[in] | cat_name | The category's name (for filtering). |
[in] | cat_id | The category's id (for filtering). |
- Returns
- A handle to the plugin-specific event.
- See also
- bactria_ranges_destroy_event, bactria_ranges_fire_event
◆ bactria_ranges_create_range()
auto bactria_ranges_create_range |
( |
char const * |
name, |
|
|
std::uint32_t |
color, |
|
|
char const * |
cat_name, |
|
|
std::uint32_t |
cat_id |
|
) |
| -> void * |
|
noexcept |
Create a range handle.
This function creates a plugin-specific range handle. This is internally used by bactria::Range to communicate with the plugin. Each bactria::Range encapsulates its own range handle.
- Parameters
-
[in] | name | The name of the range (as it should appear on the visualizer). |
[in] | color | The color of the range (as it should appear on the visualizer). |
[in] | cat_name | The category's name (for filtering). |
[in] | cat_id | The category's id (for filtering). |
- Returns
- A handle to the plugin-specific range.
- See also
- bactria_ranges_destroy_range, bactria_ranges_start_range, bactria_ranges_stop_range
◆ bactria_ranges_destroy_event()
auto bactria_ranges_destroy_event |
( |
void * |
event_handle | ) |
-> void |
|
noexcept |
◆ bactria_ranges_destroy_range()
auto bactria_ranges_destroy_range |
( |
void * |
range_handle | ) |
-> void |
|
noexcept |
◆ bactria_ranges_fire_event()
auto bactria_ranges_fire_event |
( |
void * |
event_handle, |
|
|
char const * |
event_name, |
|
|
char const * |
source, |
|
|
std::uint32_t |
lineno, |
|
|
char const * |
caller |
|
) |
| -> void |
|
noexcept |
Fire an event.
This function fires a plugin-specific event. It is called internally by bactria::Event::fire().
- Parameters
-
[in,out] | event_handle | The event handle created by bactria_ranges_create_event(). |
[in] | event_name | The name of the event (as it should appear on the visualizer). |
[in] | source | The event's source file location. |
[in] | lineno | The event's source line location. |
[in] | caller | The event's calling function. |
- See also
- bactria_ranges_create_event, bactria_ranges_destroy_event
◆ bactria_ranges_start_range()
auto bactria_ranges_start_range |
( |
void * |
range_handle | ) |
-> void |
|
noexcept |
◆ bactria_ranges_stop_range()
auto bactria_ranges_stop_range |
( |
void * |
range_handle | ) |
-> void |
|
noexcept |