return true;
}
-static char *background_color_sequence(PTYForward *f) {
+static char* background_color_sequence(PTYForward *f) {
assert(f);
assert(f->background_color);
return 0;
}
-PTYForward *pty_forward_free(PTYForward *f) {
+PTYForward* pty_forward_free(PTYForward *f) {
if (!f)
return NULL;
return mfree(f);
}
-int pty_forward_get_last_char(PTYForward *f, char *ch) {
+int pty_forward_get_last_char(PTYForward *f, char *ret) {
assert(f);
- assert(ch);
+ assert(ret);
if (!f->last_char_set)
return -ENXIO;
- *ch = f->last_char;
+ *ret = f->last_char;
return 0;
}
typedef int (*PTYForwardHandler)(PTYForward *f, int rcode, void *userdata);
-int pty_forward_new(sd_event *event, int master, PTYForwardFlags flags, PTYForward **f);
-PTYForward *pty_forward_free(PTYForward *f);
+int pty_forward_new(sd_event *event, int master, PTYForwardFlags flags, PTYForward **ret);
+PTYForward* pty_forward_free(PTYForward *f);
-int pty_forward_get_last_char(PTYForward *f, char *ch);
+int pty_forward_get_last_char(PTYForward *f, char *ret);
int pty_forward_set_ignore_vhangup(PTYForward *f, bool ignore_vhangup);
bool pty_forward_get_ignore_vhangup(PTYForward *f);