示例#1
0
static GError *
_client_manage_event(struct gridd_client_s *client)
{
	guint8 *d = g_malloc(EVENT_BUFFER_SIZE);
	if (!d)
		return NEWERROR(ENOMEM, "Memory allocation failure");
	GError *err = _client_manage_event_in_buffer(client, d, EVENT_BUFFER_SIZE);
	g_free(d);
	return err;
}
示例#2
0
static GError *
_client_manage_event(struct gridd_client_s *client)
{
	guint8 d[EVENT_BUFFER_SIZE];
	return _client_manage_event_in_buffer(client, d, EVENT_BUFFER_SIZE);
}