Permalink
Browse files

make smugls actually list the files...

  • Loading branch information...
1 parent d840d57 commit 6b89e240604b52ac6865a5aed20dea8d9ed20167 @gregkh committed Apr 29, 2008
Showing with 8 additions and 1 deletion.
  1. +8 −1 smugls.c
View
9 smugls.c
@@ -58,6 +58,7 @@ int main(int argc, char *argv[], char *envp[])
};
struct session *session;
struct album *album;
+ struct filename *filename;
char *album_title = NULL;
int retval;
int option;
@@ -127,7 +128,7 @@ int main(int argc, char *argv[], char *envp[])
fprintf(stdout, "Available albums:\n");
list_for_each_entry(album, &session->albums, entry)
fprintf(stdout, "\t%s\n", album->title);
- fprintf(stdout, "\nwhich album id to upload to? ");
+ fprintf(stdout, "\nwhich album id to list? ");
album_title = get_string_from_stdin();
}
@@ -149,6 +150,12 @@ int main(int argc, char *argv[], char *envp[])
return -1;
}
+ /* print out the files */
+ list_for_each_entry(filename, &session->files_download, entry) {
+ fprintf(stdout, "%s %s %s %s \n", filename->id,
+ filename->key, filename->filename, filename->caption);
+ }
+
smug_logout(session);
session_free(session);

0 comments on commit 6b89e24

Please sign in to comment.