mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-04 10:19:17 +02:00
refactor(adb): simplify sync request/response ID handling
This commit is contained in:
parent
c607d911e1
commit
ba956da6bd
12 changed files with 90 additions and 74 deletions
12
libraries/adb/src/commands/sync/id-request.ts
Normal file
12
libraries/adb/src/commands/sync/id-request.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
import { adbSyncEncodeId } from "./id-common.js";
|
||||
|
||||
export { Data, Done, Lstat, LstatV2, Stat } from "./id-common.js";
|
||||
|
||||
// https://cs.android.com/android/platform/superproject/main/+/main:packages/modules/adb/file_sync_protocol.h;l=23;drc=888a54dcbf954fdffacc8283a793290abcc589cd
|
||||
|
||||
export const List = adbSyncEncodeId("LIST");
|
||||
export const ListV2 = adbSyncEncodeId("LIS2");
|
||||
|
||||
export const Send = adbSyncEncodeId("SEND");
|
||||
export const SendV2 = adbSyncEncodeId("SND2");
|
||||
export const Receive = adbSyncEncodeId("RECV");
|
Loading…
Add table
Add a link
Reference in a new issue