fork/rust-sdks
git clone https://git.julia.blue/fork/rust-sdks
e6f2164
main
1// Copyright 2023 LiveKit, Inc. 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15syntax = "proto2" ; 16 17package livekit . proto ; 18option csharp_namespace= "LiveKit.Proto" ; 19 20// # Safety 21// The foreign language is responsable for disposing handles 22// Forgetting to dispose the handle may lead to memory leaks 23// 24// Dropping a handle doesn't necessarily mean that the object is destroyed if it is still used 25// on the FfiServer (Atomic reference counting) 26// 27// When refering to a handle without owning it, we just use a uint32 without this message. 28// (the variable name is suffixed with "_handle") 29message FfiOwnedHandle { 30required uint64 id = 1 ; 31}