From 8df59101578489e4526e0132ea6906d4cfa93591 Mon Sep 17 00:00:00 2001 From: pavelyakov Date: Sat, 7 Nov 2015 22:35:31 +0000 Subject: [PATCH] fs.obj: add callback function for (copy,remove,move) git-svn-id: svn://kolibrios.org@5895 a494cfbc-eb01-0410-851d-a64ba20cac60 --- data/common/lib/fs.obj | Bin 4326 -> 4428 bytes programs/cmm/lib/obj/fs.h | 3 +++ 2 files changed, 3 insertions(+) diff --git a/data/common/lib/fs.obj b/data/common/lib/fs.obj index f73c4e164ca86decee08ec9becb41c6e89773e18..021dc58e4df39e6fff8685dc9fba311c3f1fa53e 100644 GIT binary patch literal 4428 zcmV-S5wq?~P(w@nH2?sC0002rJOC!v=qN+dPKCzS=!ILEKwn?PczD=GI+Bu~^v<_g zQQ6O;z8kKqt<-)7a`(fCxC2+%UMcU-WU<7fnaqN}H=`{b8nhKf=iPdET@L2Wngm5! zt4JnJTZQyMMP$zYKXKLVt2nnrdKpT}?*9_-y0&0?kt7Rf=x^lDIE<|;xKdft5sOv4 z@PcE1^B*sj*$d6^hsEd-XUGr@Rs0$|>M!(0tRb)B4=v2iqJgNB&!+&|@6as#CAsZe z`oz5rfs+%U^Q_1%FEz>(r? zd?6I5o4B%vCV9fl|wye}83(vu9y5xRWS`ANGE z?Bs9ncK%>GPe}^j)00HAqXk;RRu{h~~=HXn6=w!Lg2V}H+&WA7`6rUS+ z{eb%t&O<62WXscg_hj-0<1NW~Iwu0e^|L%P(mJrb7cY~jEQ#3;4<}jK;=d3yHbmFA zD&b1YM){e}AJ2}N#Jm2mNdT?6_x5N`>jm^V~ua^QF z=L44zuo&s%srFPPzBUX~5VZ>-!y$S71uJ9*K0GoFh3g3pL-|j*>c~iFB2H3g?+lOV zusRR|p^yn^$eeLwuQfTDaf8)Gb1tfPDdRta2k&;E8M&FsUzf?YgRrA&5TD2_~HFt^&d=_>#vTzvwrGS zyw;)a-kj)Wr${yX+j^D1(*wcuc)3)K zbI(c}ll_QGMUQt(=YD(NY*iZ9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(Q8Y;-&_(#s)cCxqUbs9wl9+c~%Zk&MD)B+jB7XHp!a$aDoNT~^VFtz~wzsYV?0 zp)a{8?zt<+PTV*k$fs98)B^G<_nfN8YF+jy-db~$+kGK7;Ht~8xRI$cT2>sJ6;GQf z*}8%1tTn07+oM9<>@?znBQsVttk6|r-ARjtmL8XyjDotgx2xK54xRLWi+hhHcYa|4 zxYL1OWFk+Y?ZBlbGXs4i(A*>LYn`MZ==M^GcW-q=_vhaYQ&Pl0p^psN;7Xqc*`=xhS?Yu8ilb< z`=xC5m>HP}H00mw^Q5n04rWiuzM#H~^W9Zaf!gUE#_=mT-XgxrSH>g)*+Cr`2_J05 z)wKvooL*2FuA76;m5rVPO-#FXpV2-HHdLT5fUn@KY?%^P!D5K^x&p z9JWRs?GP4v{a>go)UcnU`*5^$8eix9gaYBm=$|`bPFS5s4@IhLL4Dm%81b!_e)q;} zWcp|xvqwRLGWk!I;1TkU1y@P$u+p*#^i^o<^azGDN&w1q?p9E;d((}!s&QwT8&#-H zqc&e@y#~-xLfWnSs#>wi^lTN4f>cX=uBz=u32KZ$U(ZZD(Zm|Dm&_S}Ke-~b+0w}_F|ZSdZ2!0( zM;YT$fM)x7A;OUei3fIz%6AE(A$^L`Lv{`c3R^9IPF$SJO0!l)(x|g}M1= zr0nrj53=U>z&VDd$WYtMMO*YY%G1mb5bw?)D)HkAsS!({!4KjUCBD$es3fKu$c_O@ zm>{?Nf_bA^J9}Y}X;t?IEmLmKD21j8gJ(%%(Te676Ce>eO^cujGPMZfHIplu3BxP? zNvl+ssluhya3#gvWUgd`#BltF`bg(E+2Xr{J`*o4l%7=BTo>iw2@ UH^9-*u~aV;n_J-kx&QzG27zl{CIA2c diff --git a/programs/cmm/lib/obj/fs.h b/programs/cmm/lib/obj/fs.h index f4eeab5c58..dc323deb8d 100644 --- a/programs/cmm/lib/obj/fs.h +++ b/programs/cmm/lib/obj/fs.h @@ -29,6 +29,8 @@ dword get_size_pointer; qword get_size(dword path); + + dword callback_copy; } fs; :byte FILE_SYSTEM_FUNCTION::remove(dword path) @@ -93,6 +95,7 @@ fs.copy_pointer = library.get("fs.copy"); fs.read_pointer = library.get("fs.read"); fs.run_pointer = library.get("fs.execute"); + fs.callback_copy = library.get("fs.callback_copy"); __CHECK_FS__ = true; }