mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user