···171171 ${CMAKE_CURRENT_SOURCE_DIR}/external/dtrace/head
172172 ${CMAKE_CURRENT_SOURCE_DIR}/ScriptingBridge/include
173173 ${CMAKE_CURRENT_SOURCE_DIR}/lkm/include
174174+ ${CMAKE_CURRENT_SOURCE_DIR}/libDiagnosticMessagesClient/include
174175)
175176176177# It must be done in this scope
···331332add_subdirectory(external/Heimdal)
332333add_subdirectory(PlistBuddy)
333334add_subdirectory(ScriptingBridge)
335335+add_subdirectory(libDiagnosticMessagesClient)
334336335337# /Applications
336338#add_subdirectory(external/TextEdit)
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+void* msgtracer_domain_free(void);
2121+void* msgtracer_domain_new(void);
2222+void* msgtracer_log(void);
2323+void* msgtracer_log_with_keys(void);
2424+void* msgtracer_log_with_keys_skip_nulls(void);
2525+void* msgtracer_msg_free(void);
2626+void* msgtracer_msg_new(void);
2727+void* msgtracer_set(void);
2828+void* msgtracer_uuid_create(void);
2929+void* msgtracer_vlog(void);
3030+void* msgtracer_vlog_with_keys(void);
3131+void* msgtracer_vlog_with_keys_skip_nulls(void);
+37
src/libDiagnosticMessagesClient/src/functions.c
···11+/*
22+This file is part of Darling.
33+44+Copyright (C) 2017 Lubos Dolezel
55+66+Darling is free software: you can redistribute it and/or modify
77+it under the terms of the GNU General Public License as published by
88+the Free Software Foundation, either version 3 of the License, or
99+(at your option) any later version.
1010+1111+Darling is distributed in the hope that it will be useful,
1212+but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+GNU General Public License for more details.
1515+1616+You should have received a copy of the GNU General Public License
1717+along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+2121+#include <stdlib.h>
2222+static int verbose = 0;
2323+__attribute__((constructor)) static void initme(void) {
2424+ verbose = getenv("STUB_VERBOSE") != NULL;
2525+}
2626+void* msgtracer_domain_free(void) { if (verbose) puts("STUB: msgtracer_domain_free called"); return NULL; }
2727+void* msgtracer_domain_new(void) { if (verbose) puts("STUB: msgtracer_domain_new called"); return NULL; }
2828+void* msgtracer_log(void) { if (verbose) puts("STUB: msgtracer_log called"); return NULL; }
2929+void* msgtracer_log_with_keys(void) { if (verbose) puts("STUB: msgtracer_log_with_keys called"); return NULL; }
3030+void* msgtracer_log_with_keys_skip_nulls(void) { if (verbose) puts("STUB: msgtracer_log_with_keys_skip_nulls called"); return NULL; }
3131+void* msgtracer_msg_free(void) { if (verbose) puts("STUB: msgtracer_msg_free called"); return NULL; }
3232+void* msgtracer_msg_new(void) { if (verbose) puts("STUB: msgtracer_msg_new called"); return NULL; }
3333+void* msgtracer_set(void) { if (verbose) puts("STUB: msgtracer_set called"); return NULL; }
3434+void* msgtracer_uuid_create(void) { if (verbose) puts("STUB: msgtracer_uuid_create called"); return NULL; }
3535+void* msgtracer_vlog(void) { if (verbose) puts("STUB: msgtracer_vlog called"); return NULL; }
3636+void* msgtracer_vlog_with_keys(void) { if (verbose) puts("STUB: msgtracer_vlog_with_keys called"); return NULL; }
3737+void* msgtracer_vlog_with_keys_skip_nulls(void) { if (verbose) puts("STUB: msgtracer_vlog_with_keys_skip_nulls called"); return NULL; }