Improve listener interface.

Now a structure is passed back, enabling combining the existing source
and sink listeners and adding property listeners as well.
This commit is contained in:
Peter Johnson
2016-11-04 12:46:22 -07:00
parent e07a40a16d
commit 8d2efb2838
8 changed files with 165 additions and 234 deletions

View File

@@ -156,16 +156,10 @@ public class CameraServerJNI {
//
// Listener Functions
//
//public static native int addSourceListener(void (*callback)(String name, int source,
// int event),
//public static native int addListener(void (*callback)(VideoEvent event),
// int eventMask);
public static native void removeSourceListener(int handle);
//public static native int addSinkListener(void (*callback)(String name, int sink, int event),
// int eventMask);
public static native void removeSinkListener(int handle);
public static native void removeListener(int handle);
//
// Utility Functions