mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-10 10:21:48 +00:00
30 lines
543 B
C
30 lines
543 B
C
//
|
|
// SpringBoardAccess-test.c
|
|
//
|
|
// Created by Matthias Ringwald on 9/15/09.
|
|
//
|
|
#include "SpringBoardAccess.h"
|
|
|
|
#include <string.h>
|
|
#include <stdio.h>
|
|
|
|
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;
|
|
}
|
|
}
|
|
|
|
if (usage) {
|
|
printf("Usage: %s add/remove StatuBarImageName", argv[0]);
|
|
return -1;
|
|
}
|
|
}
|
|
|