MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rdline_reset

Function rdline_reset

dpdk/lib/cmdline/cmdline_rdline.c:125–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125void
126rdline_reset(struct rdline *rdl)
127{
128 if (!rdl)
129 return;
130 vt100_init(&rdl->vt100);
131 cirbuf_init(&rdl->left, rdl->left_buf, 0, RDLINE_BUF_SIZE);
132 cirbuf_init(&rdl->right, rdl->right_buf, 0, RDLINE_BUF_SIZE);
133
134 rdl->status = RDLINE_RUNNING;
135
136 rdl->history_cur_line = -1;
137}
138
139const char *
140rdline_get_buffer(struct rdline *rdl)

Callers 1

test_cmdline_rdline_fnsFunction · 0.85

Calls 2

vt100_initFunction · 0.85
cirbuf_initFunction · 0.85

Tested by 1

test_cmdline_rdline_fnsFunction · 0.68