btstack/SpringBoardAccess/SpringBoardAccess-test.c

30 lines
545 B
C
Raw Normal View History

//
2009-09-20 15:07:11 +00:00
// SpringBoardAccess-test.c
//
// Created by Matthias Ringwald on 9/15/09.
//
2009-09-20 15:07:11 +00:00
#include "SpringBoardAccess.h"
2009-09-20 15:07:11 +00:00
#include <string.h>
#include <stdio.h>
2009-09-16 21:37:32 +00:00
2009-09-20 15:07:11 +00:00
int main(int argc, char *argv[]) {
int usage = 1;
if (argc == 3) {
if (strcmp("add", argv[1]) == 0) {
SBA_addStatusBarImage(argv[2]);
usage = 0;
} else if (strcmp("remove", argv[1]) == 0) {
SBA_removeStatusBarImage(argv[2]);
usage = 0;
}
2009-09-16 21:37:32 +00:00
}
2009-09-20 15:07:11 +00:00
if (usage) {
2009-09-30 21:07:28 +00:00
printf("Usage: %s add/remove StatuBarImageName\n", argv[0]);
2009-09-20 15:07:11 +00:00
return -1;
}
2009-09-16 21:37:32 +00:00
}