Source: tunnelmode.js

/* Wrapper generated by lp-gen-wrappers, do not edit*/

var linphone = linphone || {};
/**
 * Enum describing the tunnel modes. 
 * @readonly
 * @enum {number}
**/
linphone.TunnelMode = {
	/**
	 * The tunnel is disabled. 
	*/
	Disable : 0,
	/**
	 * The tunnel is enabled. 
	*/
	Enable : 1,
	/**
	 * The tunnel is enabled automatically if it is required. 
	*/
	Auto : 2
};
/**
 * Get the name of a value of the TunnelMode enum as a string.
 * @function linphone#getTunnelModeText
 * @param { number } value - One of the values of the TunnelMode enum.
**/
linphone.getTunnelModeText = function(value) {
	switch (value) {
	case linphone.TunnelMode.Disable:
		return "Disable";
	case linphone.TunnelMode.Enable:
		return "Enable";
	case linphone.TunnelMode.Auto:
		return "Auto";
	default:
		return "?";
	}
};