static const guchar *thread_details (struct _WapiHandleShared *handle);
static const guchar *namedmutex_details (struct _WapiHandleShared *handle);
static const guchar *namedsem_details (struct _WapiHandleShared *handle);
+static const guchar *namedevent_details (struct _WapiHandleShared *handle);
static const guchar *process_details (struct _WapiHandleShared *handle);
/* This depends on the ordering of the enum WapiHandleType in
unshared_details, /* pipe */
namedmutex_details,
namedsem_details,
+ namedevent_details,
unused_details,
};
return(buf);
}
+static const guchar *namedevent_details (struct _WapiHandleShared *handle)
+{
+ static guchar buf[80];
+ gchar *name;
+ struct _WapiHandle_namedevent *event = &handle->u.namedevent;
+
+ name = event->sharedns.name;
+
+ g_snprintf (buf, sizeof(buf), "[%15s] %s count: %5u",
+ name == NULL?(gchar *)"":name,
+ event->manual?"Manual":"Auto", event->set_count);
+
+ return(buf);
+}
+
static const guchar *process_details (struct _WapiHandleShared *handle)
{
static guchar buf[80];