| 34 | } |
| 35 | |
| 36 | FancyRefPtr<Service> ServiceFS::CreateService(const char* name){ |
| 37 | auto svc = FancyRefPtr<Service>(new Service(name)); |
| 38 | |
| 39 | services.add_back(svc); |
| 40 | (*svc.getRefCount())--; // Really hacky but means that the service list entry does not count as a reference |
| 41 | |
| 42 | return svc; |
| 43 | } |
| 44 | |
| 45 | Service::Service(const char* _name){ |
| 46 | name = strdup(_name); |
no test coverage detected