common: move utils_create_lock_file to its own file
[lttng-tools.git] / src / common / domain.cpp
CommitLineData
c0374092
JR
1/*
2 * Copyright (C) 2020 Simon Marchi <simon.marchi@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 */
7
c9e313bc 8#include "common/macros.hpp"
28ab034a 9#include "lttng/domain-internal.hpp"
c0374092 10
c0374092
JR
11const char *lttng_domain_type_str(enum lttng_domain_type domain_type)
12{
13 switch (domain_type) {
14 case LTTNG_DOMAIN_NONE:
15 return "none";
16 case LTTNG_DOMAIN_KERNEL:
17 return "kernel";
18 case LTTNG_DOMAIN_UST:
19 return "ust";
20 case LTTNG_DOMAIN_JUL:
21 return "jul";
22 case LTTNG_DOMAIN_LOG4J:
23 return "log4j";
24 case LTTNG_DOMAIN_PYTHON:
25 return "python";
26 default:
27 return "???";
28 }
29}
This page took 0.052613 seconds and 4 git commands to generate.