]> Git Repo - qemu.git/commitdiff
9pfs: export pdu_{submit,alloc,free}
authorWei Liu <[email protected]>
Thu, 7 Jan 2016 18:35:12 +0000 (18:35 +0000)
committerAneesh Kumar K.V <[email protected]>
Fri, 8 Jan 2016 10:00:39 +0000 (15:30 +0530)
They will be used in later patches.

Signed-off-by: Wei Liu <[email protected]>
Signed-off-by: Aneesh Kumar K.V <[email protected]>
hw/9pfs/9p.h
hw/9pfs/virtio-9p.c

index 9aeb8745cf20b7e35e4005359854ab79ade24c55..b62c9a885a4597952458b863c04929c4f3403ab5 100644 (file)
@@ -321,5 +321,8 @@ extern int v9fs_name_to_path(V9fsState *s, V9fsPath *dirpath,
 
 ssize_t pdu_marshal(V9fsPDU *pdu, size_t offset, const char *fmt, ...);
 ssize_t pdu_unmarshal(V9fsPDU *pdu, size_t offset, const char *fmt, ...);
+V9fsPDU *pdu_alloc(V9fsState *s);
+void pdu_free(V9fsPDU *pdu);
+void pdu_submit(V9fsPDU *pdu);
 
 #endif
index 691a1d91f21b16cc0ddcc4469e09cc434e7cc270..3d5140d1e3b6ac96c8b7b850f9517be22a573faa 100644 (file)
@@ -592,7 +592,7 @@ static int fid_to_qid(V9fsPDU *pdu, V9fsFidState *fidp, V9fsQID *qidp)
     return 0;
 }
 
-static V9fsPDU *pdu_alloc(V9fsState *s)
+V9fsPDU *pdu_alloc(V9fsState *s)
 {
     V9fsPDU *pdu = NULL;
 
@@ -604,7 +604,7 @@ static V9fsPDU *pdu_alloc(V9fsState *s)
     return pdu;
 }
 
-static void pdu_free(V9fsPDU *pdu)
+void pdu_free(V9fsPDU *pdu)
 {
     if (pdu) {
         V9fsState *s = pdu->s;
@@ -3246,7 +3246,7 @@ static inline bool is_read_only_op(V9fsPDU *pdu)
     }
 }
 
-static void pdu_submit(V9fsPDU *pdu)
+void pdu_submit(V9fsPDU *pdu)
 {
     Coroutine *co;
     CoroutineEntry *handler;
This page took 0.02672 seconds and 4 git commands to generate.