/*
 * Kurento Android Media: Android Media Library based on FFmpeg.
 * Copyright (C) 2011  Tikal Technologies
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 3
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.kurento.kas.media.ports;

import com.kurento.kas.media.Native;

public class MediaPortManager extends Native {

	public static int takeAudioLocalPort(){
		return takeAudioLocalPort(-1);
	}
	public static native int takeAudioLocalPort(int audioPort);
	public static native void releaseAudioLocalPort();
	
	public static int takeVideoLocalPort() {
		return takeVideoLocalPort(-1);
	}
	public static native int takeVideoLocalPort(int videoPort);
	public static native void releaseVideoLocalPort();

}

@@ -968,36 +968,35 @@
 c static native 
-void
+int
  releaseAudioLoc
@@ -1172,12 +1172,11 @@
 ive 
-void
+int
  rel

Return in releaseLocalPort funcions the number of remainder processes using them.