added the framework for supporting new link types in the file-get-links API

This commit is contained in:
root
2014-12-27 22:26:24 -06:00
parent 59e7fe33f9
commit 53e85e0de1
7 changed files with 88 additions and 12 deletions

View File

@@ -59,7 +59,11 @@ int mfshell_cmd_links(mfshell * mfshell, int argc, char *const argv[])
file = file_alloc();
retval = mfconn_api_file_get_links(mfshell->conn, file, (char *)quickkey);
// when the lower-level call gets updated to support multiple link types
// this should be updated.
retval = mfconn_api_file_get_links(mfshell->conn, file,
(char *)quickkey,
LINK_TYPE_DIRECT_DOWNLOAD);
if (retval != 0) {
fprintf(stderr, "api call unsuccessful\n");
}