mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 16:01:27 +00:00
swaynag: add printf attribute to swaynag_log()
This commit is contained in:
parent
96cebb4fe6
commit
ea279f4df3
|
@ -1,6 +1,7 @@
|
||||||
#ifndef _SWAY_SWAYNAG_H
|
#ifndef _SWAY_SWAYNAG_H
|
||||||
#define _SWAY_SWAYNAG_H
|
#define _SWAY_SWAYNAG_H
|
||||||
#include <wayland-server-core.h>
|
#include <wayland-server-core.h>
|
||||||
|
#include "stringop.h"
|
||||||
|
|
||||||
struct swaynag_instance {
|
struct swaynag_instance {
|
||||||
struct wl_client *client;
|
struct wl_client *client;
|
||||||
|
@ -21,7 +22,7 @@ bool swaynag_spawn(const char *swaynag_command,
|
||||||
// Write a log message to swaynag->fd[1]. This will fail when swaynag->detailed
|
// Write a log message to swaynag->fd[1]. This will fail when swaynag->detailed
|
||||||
// is false.
|
// is false.
|
||||||
void swaynag_log(const char *swaynag_command, struct swaynag_instance *swaynag,
|
void swaynag_log(const char *swaynag_command, struct swaynag_instance *swaynag,
|
||||||
const char *fmt, ...);
|
const char *fmt, ...) _SWAY_ATTRIB_PRINTF(3, 4);
|
||||||
|
|
||||||
// If swaynag->detailed, close swaynag->fd[1] so swaynag displays
|
// If swaynag->detailed, close swaynag->fd[1] so swaynag displays
|
||||||
void swaynag_show(struct swaynag_instance *swaynag);
|
void swaynag_show(struct swaynag_instance *swaynag);
|
||||||
|
|
Loading…
Reference in a new issue