- if (p == NULL)
- return;
-
- printf("packet_type: 0x%08x (%u)\n", p->header.packet_type, p->header.packet_type);
- printf("unknown1: 0x%08x (%u)\n", p->header.unknown1, p->header.unknown1);
- printf("unknown2: 0x%08x (%u)\n", p->header.unknown2, p->header.unknown2);
- printf("width: 0x%08x (%u)\n", p->header.width, p->header.width);
- printf("height: 0x%08x (%u)\n", p->header.height, p->header.height);
- printf("size: 0x%08x (%u)\n", p->header.payload_size, p->header.payload_size);
- fflush(stdout);
-}
-
-static void packet_dump_buffer(struct buffer *buffer)
-{
- unsigned int i;
-
- if (buffer == NULL)
- return;
-
- if (buffer->data == NULL)
- return;
-
- for (i = 0; i < buffer->len; i++) {
- printf("%02hhX%c", buffer->data[i], (i < buffer->len - 1) ? ' ' : '\n');
- }
- fflush(stdout);
+ printf("usage: %s [OPTIONS]\n\n", name);
+ printf("OPTIONS:\n");
+ printf("\t-f <filename>\t\tthe image file to upload\n");
+ printf("\t-F <format>\t\tthe image format to use (default is JPEG).\n");
+ printf("\t\t\t\tSUPPORTED FORMATS:\n");
+ printf("\t\t\t\t\t1 - JPEG\n");
+ printf("\t-W <image width>\tthe width of the image to upload\n");
+ printf("\t-H <image height>\tthe height of the image to upload\n");
+ printf("\t-h \t\t\tthis help message\n");