2 * ========================================================================
3 * Copyright 2013-2022 Eduardo Chappa
4 * Copyright 2006 University of Washington
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * ========================================================================
15 #include "../pith/headers.h"
16 #include "../pith/status.h"
17 #include "../pith/state.h"
20 /*----------------------------------------------------------------------
21 Put a message with 1 printf argument on queue for status line
23 Args: min_t -- minimum time to display message for
24 max_t -- minimum time to display message for
25 s -- printf style control string
26 a -- argument for printf
28 Result: message queued
33 q_status_message1(int flags
, int min_t
, int max_t
, char *s
, void *a
)
35 snprintf(tmp_20k_buf
, SIZEOF_20KBUF
, s
, a
);
36 q_status_message(flags
, min_t
, max_t
, tmp_20k_buf
);
41 /*----------------------------------------------------------------------
42 Put a message with 2 printf argument on queue for status line
44 Args: min_t -- minimum time to display message for
45 max_t -- maximum time to display message for
46 s -- printf style control string
47 a1 -- argument for printf
48 a2 -- argument for printf
50 Result: message queued
55 q_status_message2(int flags
, int min_t
, int max_t
, char *s
, void *a1
, void *a2
)
57 snprintf(tmp_20k_buf
, SIZEOF_20KBUF
, s
, a1
, a2
);
58 q_status_message(flags
, min_t
, max_t
, tmp_20k_buf
);
63 /*----------------------------------------------------------------------
64 Put a message with 3 printf argument on queue for status line
66 Args: min_t -- minimum time to display message for
67 max_t -- maximum time to display message for
68 s -- printf style control string
69 a1 -- argument for printf
70 a2 -- argument for printf
71 a3 -- argument for printf
73 Result: message queued
78 q_status_message3(int flags
, int min_t
, int max_t
, char *s
, void *a1
, void *a2
, void *a3
)
80 snprintf(tmp_20k_buf
, SIZEOF_20KBUF
, s
, a1
, a2
, a3
);
81 q_status_message(flags
, min_t
, max_t
, tmp_20k_buf
);
86 /*----------------------------------------------------------------------
87 Put a message with 4 printf argument on queue for status line
90 Args: min_t -- minimum time to display message for
91 max_t -- maximum time to display message for
92 s -- printf style control string
93 a1 -- argument for printf
94 a2 -- argument for printf
95 a3 -- argument for printf
96 a4 -- argument for printf
98 Result: message queued
99 ----------------------------------------------------------------------*/
102 q_status_message4(int flags
, int min_t
, int max_t
, char *s
, void *a1
, void *a2
, void *a3
, void *a4
)
104 snprintf(tmp_20k_buf
, SIZEOF_20KBUF
, s
, a1
, a2
, a3
, a4
);
105 q_status_message(flags
, min_t
, max_t
, tmp_20k_buf
);
111 q_status_message5(int flags
, int min_t
, int max_t
, char *s
, void *a1
, void *a2
, void *a3
, void *a4
, void *a5
)
113 snprintf(tmp_20k_buf
, SIZEOF_20KBUF
, s
, a1
, a2
, a3
, a4
, a5
);
114 q_status_message(flags
, min_t
, max_t
, tmp_20k_buf
);
120 q_status_message6(int flags
, int min_t
, int max_t
, char *s
, void *a1
, void *a2
, void *a3
, void *a4
, void *a5
, void *a6
)
122 snprintf(tmp_20k_buf
, SIZEOF_20KBUF
, s
, a1
, a2
, a3
, a4
, a5
, a6
);
123 q_status_message(flags
, min_t
, max_t
, tmp_20k_buf
);
127 /*----------------------------------------------------------------------
128 Put a message with 7 printf argument on queue for status line
131 Args: min_t -- minimum time to display message for
132 max_t -- maximum time to display message for
133 s -- printf style control string
134 a1 -- argument for printf
135 a2 -- argument for printf
136 a3 -- argument for printf
137 a4 -- argument for printf
138 a5 -- argument for printf
139 a6 -- argument for printf
140 a7 -- argument for printf
143 Result: message queued
144 ----------------------------------------------------------------------*/
147 q_status_message7(int flags
, int min_t
, int max_t
, char *s
, void *a1
, void *a2
, void *a3
, void *a4
, void *a5
, void *a6
, void *a7
)
149 snprintf(tmp_20k_buf
, SIZEOF_20KBUF
, s
, a1
, a2
, a3
, a4
, a5
, a6
, a7
);
150 q_status_message(flags
, min_t
, max_t
, tmp_20k_buf
);
156 q_status_message8(int flags
, int min_t
, int max_t
, char *s
, void *a1
, void *a2
, void *a3
, void *a4
, void *a5
, void *a6
, void *a7
, void *a8
)
158 snprintf(tmp_20k_buf
, SIZEOF_20KBUF
, s
, a1
, a2
, a3
, a4
, a5
, a6
, a7
, a8
);
159 q_status_message(flags
, min_t
, max_t
, tmp_20k_buf
);