| 1 | /* |
| 2 | * QEMU Guest Agent VSS debug declarations |
| 3 | * |
| 4 | * Copyright (C) 2023 Red Hat Inc |
| 5 | * |
| 6 | * Authors: |
| 7 | * Konstantin Kostiuk <kkostiuk@redhat.com> |
| 8 | * |
| 9 | * This work is licensed under the terms of the GNU GPL, version 2 or later. |
| 10 | * See the COPYING file in the top-level directory. |
| 11 | */ |
| 12 | |
| 13 | #include <vss-handles.h> |
| 14 | |
| 15 | #ifndef VSS_DEBUG_H |
| 16 | #define VSS_DEBUG_H |
| 17 | |
| 18 | void qga_debug_internal(const char *funcname, const char *fmt, ...) G_GNUC_PRINTF(2, 3); |
| 19 | |
| 20 | #define qga_debug(fmt, ...) qga_debug_internal(__func__, fmt, ## __VA_ARGS__) |
| 21 | #define qga_debug_begin qga_debug("begin") |
| 22 | #define qga_debug_end qga_debug("end") |
| 23 | |
| 24 | #endif |