summary refs log tree commit diff stats
path: root/src/common/dbus/example.c
diff options
context:
space:
mode:
authorBerke Viktor <berkeviktor@aol.com>2011-08-12 04:58:41 +0200
committerBerke Viktor <berkeviktor@aol.com>2011-08-12 04:58:41 +0200
commit21c2666a6ab25103c8d4759fbfe92ad697eb4311 (patch)
tree51bcd111478a3858ac29ed667a749999e866d7f8 /src/common/dbus/example.c
parent8562d1bedb1eda84b17758edc78b4354857d37c0 (diff)
copy paste is the EVIL
Diffstat (limited to 'src/common/dbus/example.c')
0 files changed, 0 insertions, 0 deletions
      
#if 0	/* native file dialogs */
#include <fcntl.h>
#include "thread.h"

thread *
thread_new (void)
{
	thread *th;

	th = calloc (1, sizeof (*th));
	if (!th)
	{
		return NULL;
	}

	if (_pipe (th->pipe_fd, 4096, _O_BINARY) == -1)
	{
		free (th);
		return NULL;
	}

	return th;
}

int
thread_start (thread *th, void *(*start_routine)(void *), void *arg)
{
	DWORD id;

	CloseHandle (CreateThread (NULL, 0, (LPTHREAD_START_ROUTINE)start_routine, arg, 0, (DWORD *)&id));
	th->threadid = id;

	return 1;
}
#endif