use type alias

This commit is contained in:
David Colburn
2023-08-28 14:44:17 -07:00
parent 21c066e0eb
commit f6e7c2099f
2 changed files with 3 additions and 3 deletions

View File

@@ -245,14 +245,14 @@ func goGlobalPluginInit(plugin *C.GstPlugin) C.gboolean {
//export goLogFunction //export goLogFunction
func goLogFunction( func goLogFunction(
category *C.GstDebugCategory, _ *C.GstDebugCategory,
level C.GstDebugLevel, level C.GstDebugLevel,
file *C.gchar, file *C.gchar,
function *C.gchar, function *C.gchar,
line C.gint, line C.gint,
object *C.GObject, object *C.GObject,
message *C.GstDebugMessage, message *C.GstDebugMessage,
userData C.gpointer, _ C.gpointer,
) { ) {
logFnMu.RLock() logFnMu.RLock()
f := customLogFunction f := customLogFunction

View File

@@ -189,7 +189,7 @@ func (d *DebugCategory) LogMemDump(message string, obj ...*Object) {
d.logDepth(LevelMemDump, message, 2, getLogObj(obj...)) d.logDepth(LevelMemDump, message, 2, getLogObj(obj...))
} }
type LogFunction func( type LogFunction = func(
level DebugLevel, level DebugLevel,
file string, file string,
function string, function string,