Files
go-xmlsec/error_thunk.go
2015-12-23 14:44:38 -05:00

14 lines
512 B
Go

package xmlsec
// onError_cgo is a C function that can be passed to xmlSecErrorsSetCallback which
// in turn invokes the go function onError which captures errors generated by
// libxmlsec.
//
// For reasons I do not completely understand, it must be defined in a different
// file from onError.
// void onError_cgo(char *file, int line, char *funcName, char *errorObject, char *errorSubject, int reason, char *msg) {
// onError(file, line, funcName, errorObject, errorSubject, reason, msg);
// }
import "C"