Commit c673191b authored by Pekka Pessi's avatar Pekka Pessi

su_osx_runloop.c: moved virtual function table after struct definition

Preparing for su_port_vtable_t refactoring.

darcs-hash:20071004132107-65a35-25e874c87c9299c806382502f186050f3d8653cd.gz
parent 68f01607
......@@ -117,39 +117,6 @@ static char const *su_osx_port_name(su_port_t const *self)
return "CFRunLoop";
}
su_port_vtable_t const su_osx_port_vtable[1] =
{{
/* su_vtable_size: */ sizeof su_osx_port_vtable,
su_pthread_port_lock,
su_pthread_port_unlock,
su_base_port_incref,
su_osx_port_decref,
su_base_port_gsource,
su_osx_port_send,
su_osx_port_register,
su_osx_port_unregister,
su_osx_port_deregister,
su_osx_port_unregister_all,
su_osx_port_eventmask,
su_osx_port_run,
su_osx_port_break,
su_osx_port_step,
su_pthread_port_own_thread,
su_base_port_add_prepoll,
su_base_port_remove_prepoll,
su_base_port_timers,
su_osx_port_multishot,
su_base_port_threadsafe,
su_base_port_yield,
su_osx_port_wait_events,
su_base_port_getmsgs,
su_base_port_getmsgs_from,
su_osx_port_name,
su_base_port_start_shared,
su_pthread_port_wait,
su_pthread_port_execute,
}};
/*
* Port is a per-thread reactor.
*
......@@ -208,6 +175,39 @@ struct su_osx_port_s {
};
su_port_vtable_t const su_osx_port_vtable[1] =
{{
/* su_vtable_size: */ sizeof su_osx_port_vtable,
su_pthread_port_lock,
su_pthread_port_unlock,
su_base_port_incref,
su_osx_port_decref,
su_base_port_gsource,
su_osx_port_send,
su_osx_port_register,
su_osx_port_unregister,
su_osx_port_deregister,
su_osx_port_unregister_all,
su_osx_port_eventmask,
su_osx_port_run,
su_osx_port_break,
su_osx_port_step,
su_pthread_port_own_thread,
su_base_port_add_prepoll,
su_base_port_remove_prepoll,
su_base_port_timers,
su_osx_port_multishot,
su_base_port_threadsafe,
su_base_port_yield,
su_osx_port_wait_events,
su_base_port_getmsgs,
su_base_port_getmsgs_from,
su_osx_port_name,
su_base_port_start_shared,
su_pthread_port_wait,
su_pthread_port_execute,
}};
/* XXX - mela static void su_osx_port_destroy(su_port_t *self); */
/** Create a reactor object.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment