Skip to content

Commit

Permalink
update to version 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
svenpaulsen committed Oct 5, 2023
1 parent 5c79975 commit 9e1f159
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 44 deletions.
4 changes: 2 additions & 2 deletions bin/android-aarch64/libodin.so
Git LFS file not shown
4 changes: 2 additions & 2 deletions bin/android-x86_64/libodin.so
Git LFS file not shown
4 changes: 2 additions & 2 deletions bin/ios-aarch64/libodin.dylib
Git LFS file not shown
2 changes: 1 addition & 1 deletion bin/ios-x86_64/libodin.dylib
Git LFS file not shown
4 changes: 2 additions & 2 deletions bin/linux-aarch64/libodin.so
Git LFS file not shown
4 changes: 2 additions & 2 deletions bin/linux-x86_64/libodin.so
Git LFS file not shown
4 changes: 2 additions & 2 deletions bin/macos-aarch64/libodin.dylib
Git LFS file not shown
4 changes: 2 additions & 2 deletions bin/macos-x86_64/libodin.dylib
Git LFS file not shown
4 changes: 2 additions & 2 deletions bin/windows-aarch64/odin.dll
Git LFS file not shown
4 changes: 2 additions & 2 deletions bin/windows-aarch64/odin.lib
Git LFS file not shown
4 changes: 2 additions & 2 deletions bin/windows-x86_64/odin.dll
Git LFS file not shown
4 changes: 2 additions & 2 deletions bin/windows-x86_64/odin.lib
Git LFS file not shown
26 changes: 5 additions & 21 deletions include/odin.h
Expand Up @@ -117,20 +117,6 @@ typedef enum OdinTokenAudience {
OdinTokenAudience_Sfu,
} OdinTokenAudience;

/**
* Supported targets for user data updates.
*/
typedef enum OdinUserDataTarget {
/**
* Individual user data for your own peer
*/
OdinUserDataTarget_Peer,
/**
* Global user data for the room
*/
OdinUserDataTarget_Room,
} OdinUserDataTarget;

/**
* A pointer to a local ODIN token generator, employed for generating signed room tokens predicated
* on an access key. Be aware that access keys serve as your unique authentication keys, requisite
Expand Down Expand Up @@ -663,16 +649,14 @@ OdinReturnCode odin_room_peer_id(OdinRoomHandle room, uint64_t *out_peer_id);
OdinReturnCode odin_room_connection_stats(OdinRoomHandle room, struct OdinConnectionStats *stats);

/**
* Updates the custom user data for either your own peer or the specified `OdinRoomHandle` itself.
* All user data is synced automatically, which allows storing of arbitrary information for each
* individual peer and even globally for the room if needed.
* Updates the custom user data for your own peer. All user data is synced automatically, which
* allows storing of arbitrary information for each individual peer.
*
* Note: Use this before calling `odin_room_join` to set initial peer user data upon connect.
*/
OdinReturnCode odin_room_update_user_data(OdinRoomHandle room,
enum OdinUserDataTarget target,
const uint8_t *user_data,
size_t user_data_length);
OdinReturnCode odin_room_update_peer_user_data(OdinRoomHandle room,
const uint8_t *user_data,
size_t user_data_length);

/**
* Updates the three-dimensional position of the current peer within the specified `OdinRoomHandle`.
Expand Down

0 comments on commit 9e1f159

Please sign in to comment.