Lines Matching refs:service
16 //! Binding of native service implementation.
32 /// Represent service instance.
39 /// Call to create an instance of service.
41 /// Call to increase reference count of the service instance.
42 fn NativeServiceRef(service: *mut NativeService) -> *mut NativeService;
43 /// Call to decrease reference count of the service instance.
44 fn NativeServiceUnref(service: *mut NativeService) -> *mut NativeService;
46 fn NativeServiceOnDump(service: *mut NativeService);
47 /// Called when service is starting.
48 fn NativeServiceOnStart(service: *mut NativeService);
49 /// Called when service is stopping.
50 fn NativeServiceOnStop(service: *mut NativeService);
52 fn NativeServiceAllocSocketFd(service: *mut NativeService,
58 service: *mut NativeService,
64 !self.service.is_null()
70 unsafe { NativeServiceOnStart(self.service) };
76 unsafe { NativeServiceOnStop(self.service) };
86 NativeServiceAllocSocketFd(self.service, program_name.as_ptr() as *const c_char,
103 service: unsafe {
114 NativeServiceUnref(self.service);
123 service: unsafe {
124 NativeServiceRef(self.service)