Struct jokolink::MumbleSource [−][src]
pub struct MumbleSource {
pub mumble_src: File,
}
Expand description
This source will be the used to abstract the linux/windows way of getting MumbleLink on windows, this represents the shared memory pointer to mumblelink, and as long as one of gw2 or a client like us is alive, the shared memory will stay alive on linux, this will be a File in /dev/shm that will only exist if jokolink created it at some point in time. this lives in ram, so reading from it is pretty much free.
Fields
mumble_src: File
Implementations
try to open the Mumble Link file created by jokolink under /dev/shm . fails if jokolink didn’t create it.
read the file to get a buffer which has the USEFUL mumble link data and the x11 window id of gw2
creates a default mumble link and tries to update from the buffer read from file. then returns the link if there’s a error, it ignores that, so the link might be wrong
get the isize xid from the gw2 mumble file