chiark / gitweb /
unit: Move UnitType definitions from core/unit.c to shared/unit-name.c
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 6 Jun 2012 14:56:18 +0000 (16:56 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 10 Jul 2012 14:48:08 +0000 (16:48 +0200)
commit0a9f8ed00c8f323d5bf24a9a11149a9342c0e1aa
tree42ecd46d4d40a9c3eb0043b591a79b9968807704
parentc66d36e5b5ae81f3c5297d6dacadc13c88c530f6
unit: Move UnitType definitions from core/unit.c to shared/unit-name.c

This makes it possible to use them from systemctl without linking
against the core. A string->enum lookup table is added.
src/core/unit.h
src/shared/unit-name.c
src/shared/unit-name.h