|
@@ -49,7 +49,7 @@ static struct socket_opener socket_openers_end[0]
|
49
|
49
|
* @v uri_string URI string (e.g. "http://etherboot.org/kernel")
|
50
|
50
|
* @ret rc Return status code
|
51
|
51
|
*/
|
52
|
|
-int open_uri ( struct xfer_interface *xfer, const char *uri_string ) {
|
|
52
|
+int xfer_open_uri ( struct xfer_interface *xfer, const char *uri_string ) {
|
53
|
53
|
struct uri *uri;
|
54
|
54
|
struct uri_opener *opener;
|
55
|
55
|
|
|
@@ -78,8 +78,8 @@ int open_uri ( struct xfer_interface *xfer, const char *uri_string ) {
|
78
|
78
|
* @v domain Communication domain (e.g. PF_INET)
|
79
|
79
|
* @v type Communication semantics (e.g. SOCK_STREAM)
|
80
|
80
|
*/
|
81
|
|
-int open_socket ( struct xfer_interface *xfer,
|
82
|
|
- int domain, int type, struct sockaddr *sa ) {
|
|
81
|
+int xfer_open_socket ( struct xfer_interface *xfer,
|
|
82
|
+ int domain, int type, struct sockaddr *sa ) {
|
83
|
83
|
struct socket_opener *opener;
|
84
|
84
|
|
85
|
85
|
DBGC ( xfer, "XFER %p opening (%s,%s) socket\n", xfer,
|
|
@@ -106,18 +106,18 @@ int open_socket ( struct xfer_interface *xfer,
|
106
|
106
|
* @v args Remaining arguments depend upon location type
|
107
|
107
|
* @ret rc Return status code
|
108
|
108
|
*/
|
109
|
|
-int vopen ( struct xfer_interface *xfer, int type, va_list args ) {
|
|
109
|
+int xfer_vopen ( struct xfer_interface *xfer, int type, va_list args ) {
|
110
|
110
|
switch ( type ) {
|
111
|
111
|
case LOCATION_URI: {
|
112
|
112
|
const char *uri_string = va_arg ( args, const char * );
|
113
|
113
|
|
114
|
|
- return open_uri ( xfer, uri_string ); }
|
|
114
|
+ return xfer_open_uri ( xfer, uri_string ); }
|
115
|
115
|
case LOCATION_SOCKET: {
|
116
|
116
|
int domain = va_arg ( args, int );
|
117
|
117
|
int type = va_arg ( args, int );
|
118
|
118
|
struct sockaddr *sa = va_arg ( args, struct sockaddr * );
|
119
|
119
|
|
120
|
|
- return open_socket ( xfer, domain, type, sa ); }
|
|
120
|
+ return xfer_open_socket ( xfer, domain, type, sa ); }
|
121
|
121
|
default:
|
122
|
122
|
DBGC ( xfer, "XFER %p attempted to open unsupported location "
|
123
|
123
|
"type %d\n", xfer, type );
|
|
@@ -133,12 +133,12 @@ int vopen ( struct xfer_interface *xfer, int type, va_list args ) {
|
133
|
133
|
* @v ... Remaining arguments depend upon location type
|
134
|
134
|
* @ret rc Return status code
|
135
|
135
|
*/
|
136
|
|
-int open ( struct xfer_interface *xfer, int type, ... ) {
|
|
136
|
+int xfer_open ( struct xfer_interface *xfer, int type, ... ) {
|
137
|
137
|
va_list args;
|
138
|
138
|
int rc;
|
139
|
139
|
|
140
|
140
|
va_start ( args, type );
|
141
|
|
- rc = vopen ( xfer, type, args );
|
|
141
|
+ rc = xfer_vopen ( xfer, type, args );
|
142
|
142
|
va_end ( args );
|
143
|
143
|
return rc;
|
144
|
144
|
}
|