mirror of
https://github.com/upa/mscp.git
synced 2026-02-10 23:21:04 +08:00
21 lines
631 B
C
21 lines
631 B
C
#ifndef _PPRINT_H_
|
|
#define _PPRINT_H_
|
|
|
|
/* progress print functions */
|
|
|
|
/* level 1: print progress bar only.
|
|
* level 2: print copy start/done messages.
|
|
* level 3: print ssh connection establishment/disconnection.
|
|
* level 4: print chunk information.
|
|
*/
|
|
void pprint_set_level(int level);
|
|
void pprint(int level, const char *fmt, ...);
|
|
|
|
#define pprint1(fmt, ...) pprint(1, "\r\033[K" fmt, ##__VA_ARGS__)
|
|
#define pprint2(fmt, ...) pprint(2, "\r\033[K" fmt, ##__VA_ARGS__)
|
|
#define pprint3(fmt, ...) pprint(3, "\r\033[K" fmt, ##__VA_ARGS__)
|
|
#define pprint4(fmt, ...) pprint(4, "\r\033[K" fmt, ##__VA_ARGS__)
|
|
|
|
|
|
#endif /* _PPRRINT_H_ */
|