/* Wrapper generated by lp-gen-wrappers, do not edit*/
var linphone = linphone || {};
/**
* LinphoneGlobalState describes the global state of the LinphoneCore object. It is notified via the
* @readonly
* @enum {number}
**/
linphone.GlobalState = {
Off : 0,
Startup : 1,
On : 2,
Shutdown : 3,
Configuring : 4
};
/**
* Get the name of a value of the GlobalState enum as a string.
* @function linphone#getGlobalStateText
* @param { number } value - One of the values of the GlobalState enum.
**/
linphone.getGlobalStateText = function(value) {
switch (value) {
case linphone.GlobalState.Off:
return "Off";
case linphone.GlobalState.Startup:
return "Startup";
case linphone.GlobalState.On:
return "On";
case linphone.GlobalState.Shutdown:
return "Shutdown";
case linphone.GlobalState.Configuring:
return "Configuring";
default:
return "?";
}
};