const char * myqttd_runtime_datadir ( MyQttdCtx ctx)

Allows to get the MYQTTD_RUNTIME_DATADIR path provided at compilation time.

This is configured when the libmyqttd.{dll,so} is built, ensuring all pieces uses the same runtime datadir value.

The MYQTTD_RUNTIME_DATADIR points to the base directory where runtime data files are located (for example unix socket files).

Under unix system it is usually: /var/lib. On windows system it is usually configured to: ../run-time. Inside that directory is found a directory called "myqttd" where runtime content is found.

The function can also return the value configured at the <global-settings/system-paths/path> if configured "runtime_datadir" is configured like:

1 &lt;system-paths>
2  &lt;path name='datadir' value='runtime_datadir' />
3 &lt;/system-paths>
ctxThe myqttd ctx with the associated configuration where we are getting the sysconfdir. If NULL is provided, default value is returned.
The path currently configured by default or the value overrided on the configuration.

Referenced by myqttd_support_get_backtrace().