URL PARSER
Add a function to parse a common iscsi://... URL so we dont have to re implement the same code in every application
This commit is contained in:
@@ -18,6 +18,15 @@
|
||||
struct iscsi_context;
|
||||
struct sockaddr;
|
||||
|
||||
struct iscsi_url {
|
||||
const char *portal;
|
||||
const char *target;
|
||||
int lun;
|
||||
};
|
||||
|
||||
struct iscsi_url *iscsi_parse_full_url(struct iscsi_context *iscsi, const char *url);
|
||||
void iscsi_destroy_url(struct iscsi_url *iscsi_url);
|
||||
|
||||
|
||||
const char *iscsi_get_error(struct iscsi_context *iscsi);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user