475 lines
15 KiB
HTML
475 lines
15 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
|||
|
<!-- #file "eb.html" -->
|
|||
|
<html lang="ja">
|
|||
|
<head>
|
|||
|
<meta http-equiv="Content-Type" content="text/html; charset=euc-jp">
|
|||
|
<link rel="stylesheet" type="text/css" href="eb.css">
|
|||
|
<link rev="made" href="mailto:m-kasahr@sra.co.jp">
|
|||
|
<title>EB <20>饤<EFBFBD>֥<EFBFBD><D6A5><EFBFBD></title>
|
|||
|
</head>
|
|||
|
|
|||
|
<body>
|
|||
|
<p>
|
|||
|
[<a href="eb-12.html"><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a>] [<a href="eb-14.html"><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a>] [<a href="eb.html#toc"><EFBFBD>ܼ<EFBFBD></a>]
|
|||
|
</p>
|
|||
|
<hr>
|
|||
|
<h2><a name="book-list-on-server"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>о<EFBFBD><EFBFBD>ν<EFBFBD><EFBFBD>Ұ<EFBFBD><EFBFBD><EFBFBD></a></h2>
|
|||
|
|
|||
|
<p>
|
|||
|
EBNET <20><><EFBFBD><EFBFBD><EFBFBD>Ф<EFBFBD><D0A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ԥ<EFBFBD><D4A4>ݡ<EFBFBD><DDA1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ф<EFBFBD><D0A4><EFBFBD><EFBFBD>Υ<EFBFBD><CEA5>饤<EFBFBD><E9A5A4><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4>Ф<EFBFBD><D0A4><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><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BFBD>
|
|||
|
<EFBFBD>Τ<EFBFBD><EFBFBD>ε<EFBFBD>ǽ<EFBFBD>ˤ<EFBFBD><EFBFBD>äƼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
(ebinfo <20>ˤĤ<CBA4><C4A4>Ƥξܺ٤ϡ<D9A4>
|
|||
|
@pxref{Book list on EBNET server, , EBNET <20><><EFBFBD><EFBFBD><EFBFBD>Фν<D0A4><CEBD>Ұ<EFBFBD><D2B0><EFBFBD>, ebinfo-ja, ebinfo-ja}<7D><>)
|
|||
|
</p>
|
|||
|
|
|||
|
<blockquote>
|
|||
|
<pre>
|
|||
|
% ebinfo --book-list ebnet://localhost
|
|||
|
̾<EFBFBD><EFBFBD> <20><>̾
|
|||
|
encycl <20>֥饦<D6A5><F3A5B3A5><F3A5B5A5><EFBFBD>ɴ<EFBFBD>ʻ<EFBFBD>ŵ
|
|||
|
encycl.app <20>֥饦<D6A5><F3A5B3A5><F3A5B5A5><EFBFBD>ɴ<EFBFBD>ʻ<EFBFBD>ŵ (appendix)
|
|||
|
crossword <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɥѥ<C9A5><D1A5>뼭ŵ
|
|||
|
travel <20><EFBFBD><EFA1BC><EFBFBD>ɥȥ<C9A5><C8A5>٥륬<D9A5><EBA5AC><EFBFBD><EFBFBD>
|
|||
|
</pre>
|
|||
|
</blockquote>
|
|||
|
|
|||
|
<p>
|
|||
|
̾<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <samp>.app</samp> <20>ˤʤäƤ<C3A4><C6A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Τ<EFBFBD> appendix <20>ǡ<EFBFBD><C7A1><EFBFBD><EFBFBD>ǡ<EFB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BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
</p>
|
|||
|
|
|||
|
|
|||
|
<!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
|
|||
|
<h3><a name="eb_booklist-object"><code>EB_BookList</code> <20><><EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a></h3>
|
|||
|
|
|||
|
<p>
|
|||
|
EBNET <20><><EFBFBD><EFBFBD><EFBFBD>Ф<EFBFBD><D0A4><EFBFBD><F3B6A1A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҥ<EFBFBD><D2A4><EFBFBD><EFBFBD><EFBFBD> appendix <20>ǡ<EFBFBD><C7A1><EFBFBD><EFBFBD>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˤϡ<CBA4>
|
|||
|
<EFBFBD>ޤ<EFBFBD> <code>EB_BookList</code> <20><><EFBFBD>Υ<EFBFBD><CEA5>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4>Ѱդ<D1B0><D5A4><EFBFBD>ɬ<EFBFBD>פ<EFBFBD><D7A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD>
|
|||
|
</p>
|
|||
|
|
|||
|
<blockquote class="program">
|
|||
|
<pre>
|
|||
|
EB_BookList bl;
|
|||
|
</pre>
|
|||
|
</blockquote>
|
|||
|
|
|||
|
<p>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>֥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD>ΰ<EFBFBD><EFBFBD>ϡ<EFBFBD><code>malloc()</code> <20>dz<EFBFBD><C7B3>ݤ<EFBFBD><DDA4>Ƥ<C6A4><E2B9BD><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
</p>
|
|||
|
|
|||
|
<blockquote class="program">
|
|||
|
<pre>
|
|||
|
EB_BookList *bl_pointer;
|
|||
|
|
|||
|
bl_pointer = (EB_BookList *) malloc(sizeof(EB_BookList));
|
|||
|
</pre>
|
|||
|
</blockquote>
|
|||
|
|
|||
|
<p>
|
|||
|
<code>EB_Book</code> <20><><EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD>Ʊ<EFBFBD>ͤˡ<CDA4><code>EB_BookList</code>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>֥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɬ<EFBFBD>פ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϡ<EFBFBD><code>eb_initialize_booklist()</code> <20>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD>ؿ<EFBFBD><D8BF>ǹԤ<C7B9><D4A4>ޤ<EFBFBD><DEA4><EFBFBD>
|
|||
|
</p>
|
|||
|
|
|||
|
<blockquote class="program">
|
|||
|
<pre>
|
|||
|
eb_initialize_booklist(&bl);
|
|||
|
eb_initialize_booklist(bl_pointer);
|
|||
|
</pre>
|
|||
|
</blockquote>
|
|||
|
|
|||
|
<p>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>顢<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Υ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Фȥ<EFBFBD><EFBFBD>֥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӤĤ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD>С<EFBFBD><code>ebnet://localhost</code> <20><>ɽ<EFBFBD><C9BD><EFBFBD><EFBFBD><EFBFBD>륵<EFBFBD><EBA5B5><EFBFBD>Ф<EFBFBD><D0A4>Ф<EFBFBD><D0A4>ơ<EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>֥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӤĤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˤϼ<EFBFBD><EFBFBD>Τ褦<EFBFBD>ˤ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
</p>
|
|||
|
|
|||
|
<blockquote class="program">
|
|||
|
<pre>
|
|||
|
if (eb_bind_booklist(&bl, "ebnet://localhost") != EB_SUCCESS) {
|
|||
|
printf("eb_bind_booklist() failed\n");
|
|||
|
return;
|
|||
|
}
|
|||
|
</pre>
|
|||
|
</blockquote>
|
|||
|
|
|||
|
<p>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϥ<EFBFBD><EFBFBD>礦<EFBFBD>ɡ<EFBFBD><code>EB_Book</code> <20><><EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4>Ф<EFBFBD><D0A4><EFBFBD>
|
|||
|
<code>eb_bind()</code> <20><><EFBFBD>Ƥ֤Τ<D6A4>Ʊ<EFBFBD><C6B1><EFBFBD>Ǥ<EFBFBD><C7A4><EFBFBD>
|
|||
|
</p>
|
|||
|
|
|||
|
<p>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ơ<EFBFBD><EFBFBD>褦<EFBFBD>䤯<EFBFBD><EFBFBD><EFBFBD>Ұ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ξ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ф<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD>Ǥ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˤ<EFBFBD> <code>eb_booklist_book_count()</code>,
|
|||
|
<code>eb_booklist_book_name()</code>, <code>eb_booklist_book_title()</code>
|
|||
|
<EFBFBD>Ȥ<EFBFBD><EFBFBD><EFBFBD> 3 <20>Ĥδؿ<CEB4><D8BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѥ<EFBFBD><D1A4>ޤ<EFBFBD><DEA4><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>δؿ<EFBFBD><EFBFBD>Ϥ<EFBFBD><EFBFBD>줾<EFBFBD>졢<EFBFBD><EFBFBD><EFBFBD>饤<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǽ<EFBFBD>ʽ<EFBFBD><EFBFBD>Ҥο<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> appendix <20>ǡ<EFBFBD><C7A1><EFBFBD><EFBFBD><EFBFBD>̾<EFBFBD><CCBE> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̻ҤȤ<D2A4><C8A4>ƻ<EFBFBD><C6BB>ꤹ<EFBFBD><EAA4B9>̾<EFBFBD><CCBE>)<29><><EFBFBD>ƽ<EFBFBD><C6BD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD> appendix <20>ǡ<EFBFBD><C7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̾<EFBFBD><CCBE><EFBFBD><EFBFBD><EFBFBD>뤳<EFBFBD>Ȥ<EFBFBD><C8A4>Ǥ<EFBFBD><C7A4>ޤ<EFBFBD><DEA4><EFBFBD>
|
|||
|
</p>
|
|||
|
|
|||
|
<blockquote class="program">
|
|||
|
<pre>
|
|||
|
char *name, *title;
|
|||
|
int count, i;
|
|||
|
|
|||
|
count = eb_booklist_book_count(&bl);
|
|||
|
for (i = 0; i < count; i++) {
|
|||
|
if (eb_booklist_book_name(&bl, i, &name) != EB_SUCCESS) {
|
|||
|
printf("eb_booklist_book_name(%d) failed\n", i);
|
|||
|
return;
|
|||
|
}
|
|||
|
if (eb_booklist_book_title(&bl, i, &title) != EB_SUCCESS) {
|
|||
|
printf("eb_booklist_book_title(%d) failed\n", i);
|
|||
|
return;
|
|||
|
}
|
|||
|
printf("name = %s, title = %s\n", name, title);
|
|||
|
}
|
|||
|
</pre>
|
|||
|
</blockquote>
|
|||
|
|
|||
|
<p>
|
|||
|
<code>EB_BookList</code> <20><><EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ä<EFBFBD><C3A4>顢ɬ<E9A1A2><C9AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD>Ԥ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
</p>
|
|||
|
|
|||
|
<blockquote class="program">
|
|||
|
<pre>
|
|||
|
eb_finalize_booklist(&bl);
|
|||
|
eb_finalize_booklist(bl_pointer);
|
|||
|
</pre>
|
|||
|
</blockquote>
|
|||
|
|
|||
|
<p>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>֥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD>ΰ<EFBFBD><EFBFBD><EFBFBD> <code>malloc()</code> <20>dz<EFBFBD><C7B3>ݤ<EFBFBD><DDA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϡ<EFBFBD>
|
|||
|
<code>eb_finalize_booklist()</code> <20><><EFBFBD>Ƥ<EFBFBD><C6A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʤ<EFBFBD><CAA4>С<EFBFBD><D0A1><EFBFBD><EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4>ΰ<EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˲<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>뤳<EFBFBD>Ȥ<EFBFBD><EFBFBD>Ǥ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
</p>
|
|||
|
|
|||
|
<blockquote class="program">
|
|||
|
<pre>
|
|||
|
free(bl_pointer);
|
|||
|
</pre>
|
|||
|
</blockquote>
|
|||
|
|
|||
|
<!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
|
|||
|
<h3><a name="booklist-data"><EFBFBD>ǡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ξܺ<EFBFBD></a></h3>
|
|||
|
|
|||
|
<p>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD>ˤϡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Τ褦<EFBFBD>˥إå<EFBFBD><EFBFBD>ե<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD>ɤ߹<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Dz<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
</p>
|
|||
|
|
|||
|
<blockquote class="program">
|
|||
|
<pre>
|
|||
|
#include <eb/booklist.h>
|
|||
|
</pre>
|
|||
|
</blockquote>
|
|||
|
|
|||
|
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
|||
|
<h4><a name="type:BookList"><code>EB_BookList</code> <20><></a></h4>
|
|||
|
|
|||
|
<p>
|
|||
|
<code>EB_BookList</code> <20><><EFBFBD>ϡ<EFBFBD>EBNET <20><><EFBFBD><EFBFBD><EFBFBD>о夬<D0BE>ȤäƤ<C3A4><C6A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҥ<EFBFBD><D2A4><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
appendix <20>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݤ<EFBFBD><DDA4>Ѥ<EFBFBD><D1A4>륪<EFBFBD><EBA5AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥη<C8A4><CEB7>Ǥ<EFBFBD><C7A4><EFBFBD>
|
|||
|
</p>
|
|||
|
|
|||
|
<p>
|
|||
|
<code>EB_BookList</code> <20><><EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD>Ѥ<EFBFBD><D1A4><EFBFBD><EFBFBD>ݤϡ<DDA4><CFA1>ޤ<EFBFBD><DEA4><EFBFBD><EFBFBD>Υ<EFBFBD><CEA5>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>Ф<EFBFBD><EFBFBD><EFBFBD> <code>eb_initialize_booklist()</code> <20><><EFBFBD>Ƥ<EFBFBD><C6A4>ǽ<EFBFBD><C7BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɬ<EFBFBD>פ<EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
</p>
|
|||
|
|
|||
|
<!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
|
|||
|
<h3><a name="booklist-functions"><EFBFBD>ؿ<EFBFBD><EFBFBD>ξܺ<EFBFBD></a></h3>
|
|||
|
|
|||
|
<p>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD>ˤϡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Τ褦<EFBFBD>˥إå<EFBFBD><EFBFBD>ե<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɤ߹<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
</p>
|
|||
|
|
|||
|
<blockquote class="program">
|
|||
|
<pre>
|
|||
|
#include <eb/booklist.h>
|
|||
|
</pre>
|
|||
|
</blockquote>
|
|||
|
|
|||
|
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
|||
|
<h4><a name="func:initialize_booklist"><code>void eb_initialize_booklist (EB_BookList *<var>bl</var>)</code></a></h4>
|
|||
|
|
|||
|
<p>
|
|||
|
<EFBFBD>ؿ<EFBFBD> <code>eb_initialize_booklist()</code> <20>ϡ<EFBFBD><var>bl</var> <20>λؤ<CEBB>
|
|||
|
<code>EB_BookList</code> <20><><EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD>
|
|||
|
<code>EB_BookList</code> <20><><EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4>Ф<EFBFBD><D0A4><EFBFBD> EB <20>饤<EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD>¾<EFBFBD>δ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>Ȥ<EFBFBD><EFBFBD>Ф<EFBFBD><EFBFBD>ơ<EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <code>eb_initialize_booklist()</code> <20><><EFBFBD>Ƥ<EFBFBD><C6A4>ǤϤ<C7A4><CFA4><EFBFBD><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD>Ƥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư<EFBFBD><EFBFBD><EFBFBD><EFBFBD>̤<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǥ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
</p>
|
|||
|
|
|||
|
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
|||
|
<h4><a name="func:bind_booklist"><code>EB_Error_Code eb_bind_booklist (EB_BookList *<var>bl</var>, const char *<var>path</var>)</code></a></h4>
|
|||
|
|
|||
|
<p>
|
|||
|
<EFBFBD>ؿ<EFBFBD> <code>eb_bind_booklist()</code> <20>ϡ<EFBFBD><var>app</var> <20>λؤ<CEBB>
|
|||
|
<code>EB_BookList</code> <20><><EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<C8A4><F2A1A2B1>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD> <var>path</var>
|
|||
|
<EFBFBD>ǻ<EFBFBD><EFBFBD>ꤵ<EFBFBD>줿 EBNET <20><><EFBFBD><EFBFBD><EFBFBD>Ф˷<D0A4><CBB7><EFBFBD><EFBFBD>դ<EFBFBD><D5A4>ޤ<EFBFBD><DEA4><EFBFBD>
|
|||
|
</p>
|
|||
|
|
|||
|
<p>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>֥<EFBFBD><E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20><><EFBFBD>֤<EFBFBD><D6A4>ޤ<EFBFBD><DEA4><EFBFBD>
|
|||
|
</p>
|
|||
|
|
|||
|
<p>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>Ѥ<EFBFBD><EFBFBD>Ƥ<EFBFBD><EFBFBD><EFBFBD> EB <20>饤<EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD>ΥХ<CEA5><D0A5>ʥ꤬<CAA5><EAA4AC><EFBFBD><EFBFBD><EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD><D0B1>Τ<EFBFBD><CEA4>Τ<EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>硢<code>EB_ERR_EBNET_UNSUPPORTED</code> <20><><EFBFBD>֤<EFBFBD><D6A4>ޤ<EFBFBD><DEA4><EFBFBD>
|
|||
|
</p>
|
|||
|
|
|||
|
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
|||
|
<h4><a name="func:finalize_booklist"><code>void eb_finalize_booklist (EB_BookList *<var>bl</var>)</code></a></h4>
|
|||
|
|
|||
|
<p>
|
|||
|
<EFBFBD>ؿ<EFBFBD> <code>eb_finalize_booklist()</code> <20>ϡ<EFBFBD><var>bl</var> <20><><EFBFBD>ؤ<EFBFBD>
|
|||
|
<code>EB_BookList</code> <20><><EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥθ<C8A4><CEB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ԥ<EFBFBD><D4A4>ޤ<EFBFBD><DEA4><EFBFBD>
|
|||
|
</p>
|
|||
|
|
|||
|
<p>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>֥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBF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FBD>Ф<EFBFBD><EFBFBD><EFBFBD> <code>eb_bind_booklist()</code> <20><><EFBFBD>Ƥ<EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>Ȥǡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>֥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѥ<EFBFBD><EFBFBD>뤳<EFBFBD>Ȥ<EFBFBD><EFBFBD>Ǥ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
</p>
|
|||
|
|
|||
|
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
|||
|
<h4><a name="func:booklist_book_count"><code>int eb_booklist_book_count (EB_BookList *<var>bl</var>)</code></a></h4>
|
|||
|
|
|||
|
<p>
|
|||
|
<EFBFBD>ؿ<EFBFBD> <code>eb_booklist_book_count()</code> <20>ϡ<EFBFBD>EBNET <20><><EFBFBD><EFBFBD><EFBFBD>Ф<EFBFBD><D0A4><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>饤<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD>Ф<EFBFBD><EFBFBD>ƥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĥ<EFBFBD><EFBFBD>Ƥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> appendix <20>ǡ<EFBFBD><C7A1><EFBFBD><EFBFBD>ο<EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
</p>
|
|||
|
|
|||
|
<p>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>֥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <var>bl</var> <20>λؤ<CEBB> <code>EB_BookList</code> <20><><EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥϡ<C8A4>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>餫<EFBFBD><EFBFBD><EFBFBD><EFBFBD> EBNET <20><><EFBFBD><EFBFBD><EFBFBD>Ф˷<D0A4><CBB7>ӤĤ<D3A4><C4A4>Ƥ<EFBFBD><C6A4><EFBFBD>ɬ<EFBFBD>פ<EFBFBD><D7A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>ӤĤ<EFBFBD><EFBFBD>Ƥ<EFBFBD><EFBFBD>ʤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϡ<EFBFBD><code>EB_ERR_UNBOUND_BOOKLIST</code> <20><><EFBFBD>֤<EFBFBD><D6A4>ޤ<EFBFBD><DEA4><EFBFBD>
|
|||
|
</p>
|
|||
|
|
|||
|
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
|||
|
<h4><a name="func:booklist_book_name"><code>EB_Error_Code eb_booklist_book_name (EB_BookList *<var>bl</var>, int <var>i</var>, char **<var>name</var>)</code></a></h4>
|
|||
|
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
|||
|
<h4><a name="func:booklist_book_title"><code>EB_Error_Code eb_booklist_book_title (EB_BookList *<var>bl</var>, int <var>i</var>, char **<var>title</var>)</code></a></h4>
|
|||
|
|
|||
|
<p>
|
|||
|
<EFBFBD>ؿ<EFBFBD> <code>eb_booklist_book_name()</code> <20>ϡ<EFBFBD>EBNET <20><><EFBFBD><EFBFBD><EFBFBD>Фν<D0A4><CEBD>Ҥ<EFBFBD>
|
|||
|
appendix <20>ǡ<EFBFBD><C7A1><EFBFBD><EFBFBD><EFBFBD>̾<EFBFBD>Τ<EFBFBD><CEA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̾<EFBFBD>ΡפȤϡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>֥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̻Ҥǻ<EFBFBD><EFBFBD>ꤹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̾<EFBFBD>Τ<EFBFBD><EFBFBD>ȤǤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD>Ĥޤꡢ<samp>ebnet://localhost/dict</samp> <20><> <samp>dict</samp> <20><><EFBFBD><EFBFBD>ʬ
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>ؤ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
Ʊ<EFBFBD>ͤˡ<EFBFBD><EFBFBD>ؿ<EFBFBD> <code>eb_booklist_book_title()</code> <20>ϡ<EFBFBD><CFA1><EFBFBD><EFBFBD>Ҥ<EFBFBD> appendix
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>̾<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
</p>
|
|||
|
|
|||
|
<p>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E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BFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <code>bl</code> <20><><EFBFBD>ݻ<EFBFBD><DDBB><EFBFBD><EFBFBD>Ƥ<EFBFBD><C6A4><EFBFBD>
|
|||
|
ʸ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؤ<EFBFBD><EFBFBD>褦<EFBFBD>ˤʤäƤ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<code>bl</code> <20><><EFBFBD>Ф<EFBFBD><D0A4><EFBFBD> <code>eb_finalize_booklist()</code> <20><><EFBFBD>Ƥ<EFBFBD><C6A4><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD>ȡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⻲<EFBFBD><EFBFBD><EFBFBD>Բ<EFBFBD>ǽ<EFBFBD>ˤʤäƤ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD>Τǡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>դ<EFBFBD><EFBFBD>Ʋ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
</p>
|
|||
|
|
|||
|
<p>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>֥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <var>bl</var> <20>λؤ<CEBB> <code>EB_BookList</code> <20><><EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD>ϡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>餫<EFBFBD><EFBFBD><EFBFBD><EFBFBD> EBNET <20><><EFBFBD><EFBFBD><EFBFBD>Ф˷<D0A4><CBB7>ӤĤ<D3A4><C4A4>Ƥ<EFBFBD><C6A4><EFBFBD>ɬ<EFBFBD>פ<EFBFBD><D7A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>ӤĤ<EFBFBD><EFBFBD>Ƥ<EFBFBD><EFBFBD>ʤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϡ<EFBFBD><code>EB_ERR_UNBOUND_BOOKLIST</code> <20><><EFBFBD>֤<EFBFBD><D6A4>ޤ<EFBFBD><DEA4><EFBFBD>
|
|||
|
<EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD><var>i</var> <20><> 0 <20>ʾ夫<CABE>ĥ<EFBFBD><C4A5><EFBFBD><EFBFBD>Ф<EFBFBD><D0A4><EFBFBD><F3B6A1A4>Ƥ<EFBFBD><C6A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҥ<EFBFBD><D2A4><EFBFBD><EFBFBD><EFBFBD> appendix
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̤<EFBFBD><EFBFBD><EFBFBD>Ǥʤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Фʤ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͤΤȤ<EFBFBD><EFBFBD>ϡ<EFBFBD><code>EB_ERR_NO_SUCH_BOOK</code> <20><><EFBFBD>֤<EFBFBD><D6A4>ޤ<EFBFBD><DEA4><EFBFBD>
|
|||
|
</p>
|
|||
|
|
|||
|
<!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
|
|||
|
<h3><a name="booklist-sample"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ץ<EFBFBD><EFBFBD>ץ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a></h3>
|
|||
|
|
|||
|
<blockquote>
|
|||
|
<pre>
|
|||
|
/* -*- C -*-
|
|||
|
* Copyright (c) 2003-2006 Motoyuki Kasahara
|
|||
|
*
|
|||
|
* Redistribution and use in source and binary forms, with or without
|
|||
|
* modification, are permitted provided that the following conditions
|
|||
|
* are met:
|
|||
|
* 1. Redistributions of source code must retain the above copyright
|
|||
|
* notice, this list of conditions and the following disclaimer.
|
|||
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|||
|
* notice, this list of conditions and the following disclaimer in the
|
|||
|
* documentation and/or other materials provided with the distribution.
|
|||
|
* 3. Neither the name of the project nor the names of its contributors
|
|||
|
* may be used to endorse or promote products derived from this software
|
|||
|
* without specific prior written permission.
|
|||
|
*
|
|||
|
* THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
|
|||
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|||
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|||
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
|
|||
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|||
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|||
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|||
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|||
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|||
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|||
|
* SUCH DAMAGE.
|
|||
|
*/
|
|||
|
|
|||
|
/*
|
|||
|
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˡ:
|
|||
|
* booklist <remote-access-ideintifier>
|
|||
|
* <20><>:
|
|||
|
* booklist ebnet://localhost
|
|||
|
* <20><><EFBFBD><EFBFBD>:
|
|||
|
* <remote-access-ideintifier> <20>ǻ<EFBFBD><C7BB>ꤷ<EFBFBD><EAA4B7> EBNET <20><><EFBFBD><EFBFBD><EFBFBD>Ф<EFBFBD><D0A4><EFBFBD>³<EFBFBD><C2B3>
|
|||
|
* <20>ơ<EFBFBD><C6A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ф<EFBFBD><D0A4><EFBFBD><F3B6A1A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҡ<EFBFBD>appendix <20>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD>ɽ<EFBFBD><C9BD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD>
|
|||
|
*/
|
|||
|
#include <stdio.h>
|
|||
|
#include <stdlib.h>
|
|||
|
|
|||
|
#include <eb/eb.h>
|
|||
|
#include <eb/error.h>
|
|||
|
#include <eb/booklist.h>
|
|||
|
|
|||
|
int
|
|||
|
main(int argc, char *argv[])
|
|||
|
{
|
|||
|
EB_Error_Code error_code;
|
|||
|
EB_BookList bl;
|
|||
|
int book_count;
|
|||
|
char *name, *title;
|
|||
|
int i;
|
|||
|
|
|||
|
/* <20><><EFBFBD>ޥ<EFBFBD><DEA5>ɹ<C9B9><D4B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>å<EFBFBD><C3A5><EFBFBD>*/
|
|||
|
if (argc != 2) {
|
|||
|
fprintf(stderr, "Usage: %s book-path remote-access-identifier\n",
|
|||
|
argv[0]);
|
|||
|
exit(1);
|
|||
|
}
|
|||
|
|
|||
|
/* EB <20>饤<EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD> `bl' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
|
|||
|
eb_initialize_library();
|
|||
|
eb_initialize_booklist(&bl);
|
|||
|
|
|||
|
/* EBNET <20><><EFBFBD><EFBFBD><EFBFBD>Ф<EFBFBD> `bl' <20>˷<EFBFBD><CBB7><EFBFBD><EFBFBD>դ<EFBFBD><D5A4>롣*/
|
|||
|
error_code = eb_bind_booklist(&bl, argv[1]);
|
|||
|
if (error_code != EB_SUCCESS) {
|
|||
|
fprintf(stderr, "%s: failed to bind the EBNET server, %s: %s\n",
|
|||
|
argv[0], eb_error_message(error_code), argv[1]);
|
|||
|
goto die;
|
|||
|
}
|
|||
|
|
|||
|
/* <20><><EFBFBD><EFBFBD><EFBFBD>о<EFBFBD><D0BE>ν<EFBFBD><CEBD>ҡ<EFBFBD>appendix <20>θĿ<CEB8><C4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
|
|||
|
error_code = eb_booklist_book_count(&bl, &book_count);
|
|||
|
if (error_code != EB_SUCCESS) {
|
|||
|
fprintf(stderr, "%s: failed to get the number of books, %s\n",
|
|||
|
argv[0], eb_error_message(error_code));
|
|||
|
goto die;
|
|||
|
}
|
|||
|
|
|||
|
for (i = 0; i < book_count; i++) {
|
|||
|
/* <20><><EFBFBD>ҡ<EFBFBD>appendix <20><>̾<EFBFBD>Τ<EFBFBD><CEA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
|
|||
|
error_code = eb_booklist_book_name(&bl, i, &name);
|
|||
|
if (error_code != EB_SUCCESS) {
|
|||
|
fprintf(stderr, "%s: failed to get book name #%d, %s\n",
|
|||
|
argv[0], i, eb_error_message(error_code));
|
|||
|
goto die;
|
|||
|
}
|
|||
|
|
|||
|
/* <20><><EFBFBD>ҡ<EFBFBD>appendix <20><><EFBFBD><EFBFBD>̾<EFBFBD><CCBE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
|
|||
|
error_code = eb_booklist_book_name(&bl, i, &title);
|
|||
|
if (error_code != EB_SUCCESS) {
|
|||
|
fprintf(stderr, "%s: failed to get book title #%d, %s\n",
|
|||
|
argv[0], i, eb_error_message(error_code));
|
|||
|
goto die;
|
|||
|
}
|
|||
|
|
|||
|
printf("%-20s %s\n", name, title);
|
|||
|
}
|
|||
|
|
|||
|
/* `bl' <20><> EB <20>饤<EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѥ<EFBFBD><D1A4><EFBFBD>λ<EFBFBD><CEBB>*/
|
|||
|
eb_finalize_booklist(&bl);
|
|||
|
eb_finalize_library();
|
|||
|
exit(0);
|
|||
|
|
|||
|
/* <20><><EFBFBD>顼ȯ<E9A1BC><C8AF><EFBFBD>ǽ<EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4>ν<EFBFBD><CEBD><EFBFBD><EFBFBD><EFBFBD>*/
|
|||
|
die:
|
|||
|
eb_finalize_booklist(&bl);
|
|||
|
eb_finalize_library();
|
|||
|
exit(1);
|
|||
|
}
|
|||
|
</pre>
|
|||
|
</blockquote>
|
|||
|
|
|||
|
<!-- ================================================================ -->
|
|||
|
<hr>
|
|||
|
<p>
|
|||
|
[<a href="eb-12.html"><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a>] [<a href="eb-14.html"><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a>] [<a href="eb.html#toc"><EFBFBD>ܼ<EFBFBD></a>]
|
|||
|
</p>
|
|||
|
</body>
|
|||
|
</html>
|