mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
f4d74c6105
Documentation is licensed under LGPL-2.1-or-later. Scripts are MIT to facilitate reuse. Examples are relicensed to CC0-1.0 to maximise copy-and-paste for users, with permission from authors.
14 lines
393 B
C
14 lines
393 B
C
/* SPDX-License-Identifier: CC0-1.0 */
|
|
|
|
#include <stdio.h>
|
|
#include <systemd/sd-id128.h>
|
|
|
|
#define OUR_APPLICATION_ID SD_ID128_MAKE(c2,73,27,73,23,db,45,4e,a6,3b,b9,6e,79,b5,3e,97)
|
|
|
|
int main(int argc, char *argv[]) {
|
|
sd_id128_t id;
|
|
sd_id128_get_machine_app_specific(OUR_APPLICATION_ID, &id);
|
|
printf("Our application ID: " SD_ID128_FORMAT_STR "\n", SD_ID128_FORMAT_VAL(id));
|
|
return 0;
|
|
}
|