Skip to content

Commit

Permalink
goCallback() -> goRTLSDRCallback(). (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyoung authored and jpoirier committed Jun 21, 2016
1 parent e05741f commit 716a333
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions exports.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
*/
import "C"

//export goCallback
func goCallback(p1 *C.uchar, p2 C.uint32_t, _ unsafe.Pointer) {
//export goRTLSDRCallback
func goRTLSDRCallback(p1 *C.uchar, p2 C.uint32_t, _ unsafe.Pointer) {
// c buffer to go slice without copying
var buf []byte
length := int(p2)
Expand Down
4 changes: 2 additions & 2 deletions rtlsdr.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ import (
#include <rtl-sdr.h>
#endif
extern void goCallback(unsigned char *buf, uint32_t len, void *ctx);
extern void goRTLSDRCallback(unsigned char *buf, uint32_t len, void *ctx);
static inline rtlsdr_read_async_cb_t get_go_cb() {
return (rtlsdr_read_async_cb_t)goCallback;
return (rtlsdr_read_async_cb_t)goRTLSDRCallback;
}
*/
import "C"
Expand Down

0 comments on commit 716a333

Please sign in to comment.