Commits

w...@styx.org  committed 29ca2b5

fix argument type of Sync

  • Participants
  • Parent commits 747764f

Comments (0)

Files changed (3)

 			<pre>const KCMSET int = C.KCMSET</pre>
 			
 			<pre>const KCMSET int = _Cconst_KCMSET</pre>
-			<h2 id="Item">type <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=10137:10183#L453">Item</a></h2>
+			<h2 id="Item">type <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=10198:10244#L460">Item</a></h2>
 			
 			<p><pre>type Item struct {
     Key   []byte
     Value []byte
 }</pre></p>
-			<h2 id="KCCUR">type <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=6335:6378#L259">KCCUR</a></h2>
+			<h2 id="KCCUR">type <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=6396:6439#L266">KCCUR</a></h2>
 			
 			<p><pre>type KCCUR struct {
     <span class ="comment">// contains unexported fields</span>
 }</pre></p>
-				<h3 id="KCCUR.Db">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=6699:6732#L282">Db</a></h3>
+				<h3 id="KCCUR.Db">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=6760:6793#L289">Db</a></h3>
 				<p><code>func (kcc *KCCUR) Db() (kc *KCDB)</code></p>
 				
-				<h3 id="KCCUR.Del">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=6644:6667#L278">Del</a></h3>
+				<h3 id="KCCUR.Del">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=6705:6728#L285">Del</a></h3>
 				<p><code>func (kcc *KCCUR) Del()</code></p>
 				
-				<h3 id="KCCUR.Get">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=8993:9056#L391">Get</a></h3>
+				<h3 id="KCCUR.Get">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=9054:9117#L398">Get</a></h3>
 				<p><code>func (kcc *KCCUR) Get(advance bool) (k, v []byte, err os.Error)</code></p>
 				
-				<h3 id="KCCUR.GetKey">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=8149:8212#L353">GetKey</a></h3>
+				<h3 id="KCCUR.GetKey">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=8210:8273#L360">GetKey</a></h3>
 				<p><code>func (kcc *KCCUR) GetKey(advance bool) (k []byte, err os.Error)</code></p>
 				
-				<h3 id="KCCUR.GetValue">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=8569:8634#L372">GetValue</a></h3>
+				<h3 id="KCCUR.GetValue">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=8630:8695#L379">GetValue</a></h3>
 				<p><code>func (kcc *KCCUR) GetValue(advance bool) (v []byte, err os.Error)</code></p>
 				
-				<h3 id="KCCUR.Jump">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=6795:6834#L288">Jump</a></h3>
+				<h3 id="KCCUR.Jump">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=6856:6895#L295">Jump</a></h3>
 				<p><code>func (kcc *KCCUR) Jump() (err os.Error)</code></p>
 				
-				<h3 id="KCCUR.JumpBack">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=7120:7163#L303">JumpBack</a></h3>
+				<h3 id="KCCUR.JumpBack">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=7181:7224#L310">JumpBack</a></h3>
 				<p><code>func (kcc *KCCUR) JumpBack() (err os.Error)</code></p>
 				
-				<h3 id="KCCUR.JumpBackKey">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=7241:7297#L310">JumpBackKey</a></h3>
+				<h3 id="KCCUR.JumpBackKey">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=7302:7358#L317">JumpBackKey</a></h3>
 				<p><code>func (kcc *KCCUR) JumpBackKey(key []byte) (err os.Error)</code></p>
 				
-				<h3 id="KCCUR.JumpKey">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=6908:6960#L295">JumpKey</a></h3>
+				<h3 id="KCCUR.JumpKey">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=6969:7021#L302">JumpKey</a></h3>
 				<p><code>func (kcc *KCCUR) JumpKey(key []byte) (err os.Error)</code></p>
 				
-				<h3 id="KCCUR.Remove">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=7695:7736#L332">Remove</a></h3>
+				<h3 id="KCCUR.Remove">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=7756:7797#L339">Remove</a></h3>
 				<p><code>func (kcc *KCCUR) Remove() (err os.Error)</code></p>
 				
-				<h3 id="KCCUR.SetValue">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=7812:7881#L339">SetValue</a></h3>
+				<h3 id="KCCUR.SetValue">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=7873:7942#L346">SetValue</a></h3>
 				<p><code>func (kcc *KCCUR) SetValue(value []byte, advance bool) (err os.Error)</code></p>
 				
-				<h3 id="KCCUR.Step">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=7461:7500#L318">Step</a></h3>
+				<h3 id="KCCUR.Step">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=7522:7561#L325">Step</a></h3>
 				<p><code>func (kcc *KCCUR) Step() (err os.Error)</code></p>
 				
-				<h3 id="KCCUR.StepBack">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=7574:7617#L325">StepBack</a></h3>
+				<h3 id="KCCUR.StepBack">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=7635:7678#L332">StepBack</a></h3>
 				<p><code>func (kcc *KCCUR) StepBack() (err os.Error)</code></p>
 				
 			<h2 id="KCDB">type <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=106:146#L1">KCDB</a></h2>
 				<h3 id="KCDB.New">func <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=148:164#L4">New</a></h3>
 				<p><code>func New() *KCDB</code></p>
 				
-				<h3 id="KCDB.Add">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=3833:3886#L178">Add</a></h3>
+				<h3 id="KCDB.Add">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=3894:3947#L185">Add</a></h3>
 				<p><code>func (kc *KCDB) Add(key, value []byte) (err os.Error)</code></p>
 				
-				<h3 id="KCDB.Append">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=4433:4489#L196">Append</a></h3>
+				<h3 id="KCDB.Append">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=4494:4550#L203">Append</a></h3>
 				<p><code>func (kc *KCDB) Append(key, value []byte) (err os.Error)</code></p>
 				
-				<h3 id="KCDB.BeginTran">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=2893:2944#L130">BeginTran</a></h3>
+				<h3 id="KCDB.BeginTran">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=2954:3005#L137">BeginTran</a></h3>
 				<p><code>func (kc *KCDB) BeginTran(hard bool) (err os.Error)</code></p>
 				
-				<h3 id="KCDB.BeginTranTry">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=3103:3157#L143">BeginTranTry</a></h3>
+				<h3 id="KCDB.BeginTranTry">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=3164:3218#L150">BeginTranTry</a></h3>
 				<p><code>func (kc *KCDB) BeginTranTry(hard bool) (err os.Error)</code></p>
 				
-				<h3 id="KCDB.Cas">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=4939:4997#L213">Cas</a></h3>
+				<h3 id="KCDB.Cas">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=5000:5058#L220">Cas</a></h3>
 				<p><code>func (kc *KCDB) Cas(key, oval, nval []byte) (err os.Error)</code></p>
 				
-				<h3 id="KCDB.Clear">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=1523:1561#L73">Clear</a></h3>
+				<h3 id="KCDB.Clear">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=1524:1562#L74">Clear</a></h3>
 				<p><code>func (kc *KCDB) Clear() (err os.Error)</code></p>
 				
 				<h3 id="KCDB.Close">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=584:622#L23">Close</a></h3>
 				<p><code>func (kc *KCDB) Close() (err os.Error)</code></p>
 				
-				<h3 id="KCDB.Copy">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=1782:1834#L87">Copy</a></h3>
+				<h3 id="KCDB.Copy">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=1843:1895#L94">Copy</a></h3>
 				<p><code>func (kc *KCDB) Copy(filename string) (err os.Error)</code></p>
 				
-				<h3 id="KCDB.Count">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=1176:1228#L53">Count</a></h3>
+				<h3 id="KCDB.Count">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=1177:1229#L54">Count</a></h3>
 				<p><code>func (kc *KCDB) Count() (count uint64, err os.Error)</code></p>
 				
-				<h3 id="KCDB.Cursor">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=6380:6417#L263">Cursor</a></h3>
+				<h3 id="KCDB.Cursor">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=6441:6478#L270">Cursor</a></h3>
 				<p><code>func (kc *KCDB) Cursor() (kcc *KCCUR)</code></p>
 				
 				<h3 id="KCDB.Del">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=693:714#L30">Del</a></h3>
 				<p><code>func (kc *KCDB) Del()</code></p>
 				
-				<h3 id="KCDB.Dump">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=2454:2506#L113">Dump</a></h3>
+				<h3 id="KCDB.Dump">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=2515:2567#L120">Dump</a></h3>
 				<p><code>func (kc *KCDB) Dump(filename string) (err os.Error)</code></p>
 				
-				<h3 id="KCDB.EndTran">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=3319:3370#L156">EndTran</a></h3>
+				<h3 id="KCDB.EndTran">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=3380:3431#L163">EndTran</a></h3>
 				<p><code>func (kc *KCDB) EndTran(commit bool) (err os.Error)</code></p>
 				
-				<h3 id="KCDB.Get">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=5920:5980#L245">Get</a></h3>
+				<h3 id="KCDB.Get">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=5981:6041#L252">Get</a></h3>
 				<p><code>func (kc *KCDB) Get(key []byte) (value []byte, err os.Error)</code></p>
 				
-				<h3 id="KCDB.IncrDouble">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=5669:5738#L237">IncrDouble</a></h3>
+				<h3 id="KCDB.IncrDouble">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=5730:5799#L244">IncrDouble</a></h3>
 				<p><code>func (kc *KCDB) IncrDouble(key []byte, amount float64) (err os.Error)</code></p>
 				
-				<h3 id="KCDB.IncrInt">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=5422:5486#L229">IncrInt</a></h3>
+				<h3 id="KCDB.IncrInt">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=5483:5547#L236">IncrInt</a></h3>
 				<p><code>func (kc *KCDB) IncrInt(key []byte, amount int64) (err os.Error)</code></p>
 				
-				<h3 id="KCDB.Items">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=10185:10225#L458">Items</a></h3>
+				<h3 id="KCDB.Items">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=10246:10286#L465">Items</a></h3>
 				<p><code>func (kc *KCDB) Items() (out chan *Item)</code></p>
 				
-				<h3 id="KCDB.Keys">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=9539:9579#L413">Keys</a></h3>
+				<h3 id="KCDB.Keys">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=9600:9640#L420">Keys</a></h3>
 				<p><code>func (kc *KCDB) Keys() (out chan []byte)</code></p>
 				
-				<h3 id="KCDB.Load">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=2675:2727#L121">Load</a></h3>
+				<h3 id="KCDB.Load">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=2736:2788#L128">Load</a></h3>
 				<p><code>func (kc *KCDB) Load(filename string) (err os.Error)</code></p>
 				
-				<h3 id="KCDB.MatchPrefix">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=10487:10574#L478">MatchPrefix</a></h3>
+				<h3 id="KCDB.MatchPrefix">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=10548:10635#L485">MatchPrefix</a></h3>
 				<p><code>func (kc *KCDB) MatchPrefix(prefix []byte, max int) (matches chan []byte, err os.Error)</code></p>
 				
-				<h3 id="KCDB.MatchRegex">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=11051:11136#L498">MatchRegex</a></h3>
+				<h3 id="KCDB.MatchRegex">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=11112:11197#L505">MatchRegex</a></h3>
 				<p><code>func (kc *KCDB) MatchRegex(regex string, max int) (matches chan []byte, err os.Error)</code></p>
 				
-				<h3 id="KCDB.Merge">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=2151:2211#L101">Merge</a></h3>
+				<h3 id="KCDB.Merge">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=2212:2272#L108">Merge</a></h3>
 				<p><code>func (kc *KCDB) Merge(sdbs []*KCDB, mode int) (err os.Error)</code></p>
 				
 				<h3 id="KCDB.Open">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=344:396#L14">Open</a></h3>
 				<h3 id="KCDB.Path">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=743:793#L34">Path</a></h3>
 				<p><code>func (kc *KCDB) Path() (path string, err os.Error)</code></p>
 				
-				<h3 id="KCDB.Remove">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=4735:4784#L205">Remove</a></h3>
+				<h3 id="KCDB.Remove">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=4796:4845#L212">Remove</a></h3>
 				<p><code>func (kc *KCDB) Remove(key []byte) (err os.Error)</code></p>
 				
-				<h3 id="KCDB.Replace">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=4129:4186#L187">Replace</a></h3>
+				<h3 id="KCDB.Replace">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=4190:4247#L194">Replace</a></h3>
 				<p><code>func (kc *KCDB) Replace(key, value []byte) (err os.Error)</code></p>
 				
-				<h3 id="KCDB.Set">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=3537:3590#L169">Set</a></h3>
+				<h3 id="KCDB.Set">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=3598:3651#L176">Set</a></h3>
 				<p><code>func (kc *KCDB) Set(key, value []byte) (err os.Error)</code></p>
 				
-				<h3 id="KCDB.Size">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=1353:1403#L63">Size</a></h3>
+				<h3 id="KCDB.Size">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=1354:1404#L64">Size</a></h3>
 				<p><code>func (kc *KCDB) Size() (size uint64, err os.Error)</code></p>
 				
 				<h3 id="KCDB.Status">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=954:1008#L44">Status</a></h3>
 				<p><code>func (kc *KCDB) Status() (status string, err os.Error)</code></p>
 				
-				<h3 id="KCDB.Sync">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=1632:1677#L80">Sync</a></h3>
-				<p><code>func (kc *KCDB) Sync(hard int) (err os.Error)</code></p>
+				<h3 id="KCDB.Sync">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=1633:1679#L81">Sync</a></h3>
+				<p><code>func (kc *KCDB) Sync(hard bool) (err os.Error)</code></p>
 				
-				<h3 id="KCDB.Values">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=9835:9877#L433">Values</a></h3>
+				<h3 id="KCDB.Values">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=9896:9938#L440">Values</a></h3>
 				<p><code>func (kc *KCDB) Values() (out chan []byte)</code></p>
 				
 	<h2>Other packages</h2>
 
 func (kc *KCDB) Status() (status string, err os.Error)
 
-func (kc *KCDB) Sync(hard int) (err os.Error)
+func (kc *KCDB) Sync(hard bool) (err os.Error)
 
 func (kc *KCDB) Values() (out chan []byte)
 
 	return
 }
 
-func (kc *KCDB) Sync(hard int) (err os.Error) {
-	if C.kcdbsync(kc.db, C.int32_t(hard), nil, nil) == 0 {
+func (kc *KCDB) Sync(hard bool) (err os.Error) {
+	var chard C.int32_t
+	if hard {
+		chard = 1
+	} else {
+		chard = 0
+	}
+	if C.kcdbsync(kc.db, chard, nil, nil) == 0 {
 		err = kc.error()
 	}
 	return