diff options
author | Christopher Tate <ctate@google.com> | 2011-05-17 15:52:54 -0700 |
---|---|---|
committer | Christopher Tate <ctate@google.com> | 2011-05-17 15:52:54 -0700 |
commit | 702967afb1bebc97c0b8a23c075d4932820ef7a3 (patch) | |
tree | 9e61f9bfb550eaaa9e33ea2d53464d39a625d282 /adb/adb.h | |
parent | 70080d97cfcb3fe273207b1c739df587f5f93767 (diff) | |
download | system_core-702967afb1bebc97c0b8a23c075d4932820ef7a3.zip system_core-702967afb1bebc97c0b8a23c075d4932820ef7a3.tar.gz system_core-702967afb1bebc97c0b8a23c075d4932820ef7a3.tar.bz2 |
Add 'adb restore' to parallel 'adb backup'
It won't actually do anything until the 'bu' tool and framework are
updated to respond properly, but this is the adb side of the
necessary infrastructure: we copy the tarfile into the socket pointed
at the device, using the existing mechanisms.
Change-Id: Ic3b5779ade256bd1ad989a94b0685f7b1a7d59d2
Diffstat (limited to 'adb/adb.h')
-rw-r--r-- | adb/adb.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -304,7 +304,11 @@ int create_jdwp_connection_fd(int jdwp_pid); #endif #if !ADB_HOST -int backup_service(char* args); +typedef enum { + BACKUP, + RESTORE +} BackupOperation; +int backup_service(BackupOperation operation, char* args); void framebuffer_service(int fd, void *cookie); void log_service(int fd, void *cookie); void remount_service(int fd, void *cookie); |