-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #486 from jeuxjeux20/interop-improvements-apis/timer
- Loading branch information
Showing
6 changed files
with
447 additions
and
118 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,46 @@ | ||
// Copyright © Matt Jones and Contributors. Licensed under the MIT Licence (MIT). See LICENCE.md in the repository root | ||
// for more information. | ||
#ifndef NOVELRT_INTEROP_UTILITIES_NRTEVENT_H | ||
#define NOVELRT_INTEROP_UTILITIES_NRTEVENT_H | ||
|
||
#include "../NrtTypedefs.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" | ||
{ | ||
#endif | ||
|
||
// Event<> | ||
NrtUtilitiesEventHandle Nrt_Event_Create(); | ||
|
||
NrtResult Nrt_Event_AddEventHandler(NrtUtilitiesEventHandle event, | ||
void (*handler)(void*), | ||
void* context, | ||
NrtAtom* outputEventHandlerId); | ||
|
||
NrtResult Nrt_Event_RemoveEventHandler(NrtUtilitiesEventHandle event, NrtAtom eventHandlerId); | ||
|
||
NrtResult Nrt_Event_Invoke(NrtUtilitiesEventHandle event); | ||
|
||
NrtResult Nrt_Event_Destroy(NrtUtilitiesEventHandle event); | ||
|
||
// Event<NovelRT::Timing::Timestamp> | ||
NrtUtilitiesEventWithTimestampHandle Nrt_EventWithTimestamp_Create(); | ||
|
||
NrtResult Nrt_EventWithTimestamp_AddEventHandler(NrtUtilitiesEventWithTimestampHandle event, | ||
void (*handler)(NrtTimestamp, void*), | ||
void* context, | ||
NrtAtom* outputEventHandlerId); | ||
|
||
NrtResult Nrt_EventWithTimestamp_RemoveEventHandler(NrtUtilitiesEventWithTimestampHandle event, | ||
NrtAtom eventHandlerId); | ||
|
||
NrtResult Nrt_EventWithTimestamp_Invoke(NrtUtilitiesEventWithTimestampHandle event, NrtTimestamp timestamp); | ||
|
||
NrtResult Nrt_EventWithTimestamp_Destroy(NrtUtilitiesEventWithTimestampHandle event); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif // NOVELRT_INTEROP_UTILITIES_NRTEVENT_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
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
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
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
Oops, something went wrong.