Lines Matching defs:conn

28 cc1_plugin::unmarshall_check (connection *conn, unsigned long long check)
32 if (!unmarshall (conn, &r))
38 cc1_plugin::marshall_intlike (connection *conn, unsigned long long val)
40 if (!conn->send ('i'))
42 return conn->send (&val, sizeof (val));
46 cc1_plugin::unmarshall_intlike (connection *conn, unsigned long long *result)
48 if (!conn->require ('i'))
50 return conn->get (result, sizeof (*result));
54 cc1_plugin::marshall (connection *conn, const char *str)
56 if (!conn->send ('s'))
60 if (!conn->send (&len, sizeof (len)))
66 return conn->send (str, len);
70 cc1_plugin::unmarshall (connection *conn, char **result)
74 if (!conn->require ('s'))
76 if (!conn->get (&len, sizeof (len)))
89 if (!conn->get (str, len))
102 cc1_plugin::marshall_array_start (connection *conn, char id,
105 if (!conn->send (id))
109 if (!conn->send (&r, sizeof (r)))
116 cc1_plugin::marshall_array_elmts (connection *conn, size_t n_bytes,
119 return conn->send (elements, n_bytes);
123 cc1_plugin::unmarshall_array_start (connection *conn, char id,
128 if (!conn->require (id))
130 if (!conn->get (&len, sizeof (len)))
139 cc1_plugin::unmarshall_array_elmts (connection *conn, size_t n_bytes,
142 return conn->get (elements, n_bytes);
146 cc1_plugin::marshall (connection *conn, const gcc_type_array *a)
155 if (!marshall_array_start (conn, 'a', len))
161 return marshall_array_elmts (conn, len * sizeof (a->elements[0]),
166 cc1_plugin::unmarshall (connection *conn, gcc_type_array **result)
170 if (!unmarshall_array_start (conn, 'a', &len))
184 if (!unmarshall_array_elmts (conn,