summaryrefslogtreecommitdiffstats
path: root/adb/adb.h
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2011-05-17 15:52:54 -0700
committerChristopher Tate <ctate@google.com>2011-05-17 15:52:54 -0700
commit702967afb1bebc97c0b8a23c075d4932820ef7a3 (patch)
tree9e61f9bfb550eaaa9e33ea2d53464d39a625d282 /adb/adb.h
parent70080d97cfcb3fe273207b1c739df587f5f93767 (diff)
downloadsystem_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.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/adb/adb.h b/adb/adb.h
index 318a2d8..92dc62e 100644
--- a/adb/adb.h
+++ b/adb/adb.h
@@ -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);