static void ipcam_itrain_class_init(IpcamITrainClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); object_class->finalize = &ipcam_itrain_finalize; IpcamBaseServiceClass *base_service_class = IPCAM_BASE_SERVICE_CLASS(klass); base_service_class->before = ipcam_itrain_before_start; base_service_class->in_loop = ipcam_itrain_in_loop; }
static void ipcam_service_class_init(IpcamServiceClass *klass) { GObjectClass *this_class = G_OBJECT_CLASS(klass); this_class->constructor = &ipcam_service_constructor; this_class->dispose = &ipcam_service_dispose; this_class->finalize = &ipcam_service_finalize; IpcamBaseServiceClass *base_service_class = IPCAM_BASE_SERVICE_CLASS(klass); base_service_class->stop = &ipcam_service_stop_impl; base_service_class->on_read = &ipcam_service_on_read_impl; klass->server_receive_string = NULL; klass->client_receive_string = NULL; }