File: zip.xml

package info (click to toggle)
libgsf 1.14.8-1lenny2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 4,984 kB
  • ctags: 3,344
  • sloc: ansic: 18,428; sh: 9,392; xml: 6,653; makefile: 496; perl: 35; python: 13
file content (187 lines) | stat: -rw-r--r-- 10,121 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<refentry id="gsf-Zip">
<refmeta>
<refentrytitle role="top_of_page">Zip</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GSF Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>Zip</refname>
<refpurpose></refpurpose>
<!--[<xref linkend="desc" endterm="desc.title"/>]-->
</refnamediv>

<refsynopsisdiv role="synopsis">
<title role="synopsis.title">Synopsis</title>
<anchor id="GsfInfileZip"/><anchor id="GsfOutfileZip"/>
<synopsis>



                    <link linkend="GsfInfileZip-struct">GsfInfileZip</link>;
<link linkend="GsfInfile">GsfInfile</link>*          <link linkend="gsf-infile-zip-new">gsf_infile_zip_new</link>                  (<link linkend="GsfInput">GsfInput</link> *source,
                                                         <link linkend="GError">GError</link> **err);
                    <link linkend="GsfOutfileZip-struct">GsfOutfileZip</link>;
<link linkend="GsfOutfile">GsfOutfile</link>*         <link linkend="gsf-outfile-zip-new">gsf_outfile_zip_new</link>                 (<link linkend="GsfOutput">GsfOutput</link> *sink,
                                                         <link linkend="GError">GError</link> **err);
<link linkend="gboolean">gboolean</link>            <link linkend="gsf-outfile-zip-set-compression-method">gsf_outfile_zip_set_compression_method</link>
                                                        (<link linkend="GsfOutfileZip">GsfOutfileZip</link> *zip,
                                                         <link linkend="GsfZipCompressionMethod">GsfZipCompressionMethod</link> method);


</synopsis>
</refsynopsisdiv>

<refsect1 role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<synopsis>

  <link linkend="GObject">GObject</link>
   +----<link linkend="GsfInput">GsfInput</link>
         +----<link linkend="GsfInfile">GsfInfile</link>
               +----GsfInfileZip
</synopsis>
<synopsis>

  <link linkend="GObject">GObject</link>
   +----<link linkend="GsfOutput">GsfOutput</link>
         +----<link linkend="GsfOutfile">GsfOutfile</link>
               +----GsfOutfileZip
</synopsis>

</refsect1>





<refsect1 role="properties">
<title role="properties.title">Properties</title>
<synopsis>

  &quot;<link linkend="GsfInfileZip--compression-level">compression-level</link>&quot;        <link linkend="gint">gint</link>                  : Read
  &quot;<link linkend="GsfInfileZip--internal-parent">internal-parent</link>&quot;          <link linkend="GsfInfileZip">GsfInfileZip</link>          : Write / Construct Only
  &quot;<link linkend="GsfInfileZip--source">source</link>&quot;                   <link linkend="GsfInput">GsfInput</link>              : Read / Write / Construct Only
  &quot;<link linkend="GsfOutfileZip--compression-level">compression-level</link>&quot;        <link linkend="gint">gint</link>                  : Read / Write / Construct Only
  &quot;<link linkend="GsfOutfileZip--entry-name">entry-name</link>&quot;               <link linkend="gchararray">gchararray</link>            : Read / Write / Construct Only
  &quot;<link linkend="GsfOutfileZip--sink">sink</link>&quot;                     <link linkend="GsfOutput">GsfOutput</link>             : Read / Write / Construct Only
</synopsis>
</refsect1>



<refsect1 role="desc">
<title role="desc.title">Description</title>
<para>

</para>
</refsect1>

<refsect1 role="details">
<title role="details.title">Details</title>
<refsect2>
<title><anchor id="GsfInfileZip-struct" role="struct"/>GsfInfileZip</title>
<indexterm><primary>GsfInfileZip</primary></indexterm><programlisting>typedef struct _GsfInfileZip GsfInfileZip;</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="gsf-infile-zip-new" role="function"/>gsf_infile_zip_new ()</title>
<indexterm><primary>gsf_infile_zip_new</primary></indexterm><programlisting><link linkend="GsfInfile">GsfInfile</link>*          gsf_infile_zip_new                  (<link linkend="GsfInput">GsfInput</link> *source,
                                                         <link linkend="GError">GError</link> **err);</programlisting>
<para>
Opens the root directory of a Zip file.
<note>This adds a reference to <parameter>source</parameter>.</note></para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>source</parameter>&nbsp;:</term>
<listitem><simpara> A base <link linkend="GsfInput"><type>GsfInput</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>err</parameter>&nbsp;:</term>
<listitem><simpara> A <link linkend="GError"><type>GError</type></link>, optionally <link linkend="null"><literal>null</literal></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the new zip file handler
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="GsfOutfileZip-struct" role="struct"/>GsfOutfileZip</title>
<indexterm><primary>GsfOutfileZip</primary></indexterm><programlisting>typedef struct _GsfOutfileZip GsfOutfileZip;</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="gsf-outfile-zip-new" role="function"/>gsf_outfile_zip_new ()</title>
<indexterm><primary>gsf_outfile_zip_new</primary></indexterm><programlisting><link linkend="GsfOutfile">GsfOutfile</link>*         gsf_outfile_zip_new                 (<link linkend="GsfOutput">GsfOutput</link> *sink,
                                                         <link linkend="GError">GError</link> **err);</programlisting>
<para>
Creates the root directory of a Zip file and manages the addition of
children.
</para>
<para>
<note>This adds a reference to <parameter>sink</parameter>.</note></para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>sink</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GsfOutput"><type>GsfOutput</type></link> to hold the ZIP file
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>err</parameter>&nbsp;:</term>
<listitem><simpara> Location to store error, or <link linkend="NULL:CAPS"><literal>NULL</literal></link>; currently unused.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the new zip file handler
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gsf-outfile-zip-set-compression-method" role="function"/>gsf_outfile_zip_set_compression_method ()</title>
<indexterm><primary>gsf_outfile_zip_set_compression_method</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            gsf_outfile_zip_set_compression_method
                                                        (<link linkend="GsfOutfileZip">GsfOutfileZip</link> *zip,
                                                         <link linkend="GsfZipCompressionMethod">GsfZipCompressionMethod</link> method);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>zip</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>method</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>
<refsect1 role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2><title><anchor id="GsfInfileZip--compression-level"/>The &quot;<literal>compression-level</literal>&quot; property</title>
<indexterm><primary>GsfInfileZip:compression-level</primary></indexterm><programlisting>  &quot;compression-level&quot;        <link linkend="gint">gint</link>                  : Read</programlisting>
<para>The level of compression used, zero meaning none.</para><para>Allowed values: [0,10]</para>
<para>Default value: 0</para>
</refsect2>
<refsect2><title><anchor id="GsfInfileZip--internal-parent"/>The &quot;<literal>internal-parent</literal>&quot; property</title>
<indexterm><primary>GsfInfileZip:internal-parent</primary></indexterm><programlisting>  &quot;internal-parent&quot;          <link linkend="GsfInfileZip">GsfInfileZip</link>          : Write / Construct Only</programlisting>
<para>Internal use only.</para></refsect2>
<refsect2><title><anchor id="GsfInfileZip--source"/>The &quot;<literal>source</literal>&quot; property</title>
<indexterm><primary>GsfInfileZip:source</primary></indexterm><programlisting>  &quot;source&quot;                   <link linkend="GsfInput">GsfInput</link>              : Read / Write / Construct Only</programlisting>
<para>The archive being interpreted.</para></refsect2>
<refsect2><title><anchor id="GsfOutfileZip--compression-level"/>The &quot;<literal>compression-level</literal>&quot; property</title>
<indexterm><primary>GsfOutfileZip:compression-level</primary></indexterm><programlisting>  &quot;compression-level&quot;        <link linkend="gint">gint</link>                  : Read / Write / Construct Only</programlisting>
<para>The level of compression used, zero meaning none.</para><para>Allowed values: [0,10]</para>
<para>Default value: 8</para>
</refsect2>
<refsect2><title><anchor id="GsfOutfileZip--entry-name"/>The &quot;<literal>entry-name</literal>&quot; property</title>
<indexterm><primary>GsfOutfileZip:entry-name</primary></indexterm><programlisting>  &quot;entry-name&quot;               <link linkend="gchararray">gchararray</link>            : Read / Write / Construct Only</programlisting>
<para>The filename of this member in the archive without path.</para><para>Default value: NULL</para>
</refsect2>
<refsect2><title><anchor id="GsfOutfileZip--sink"/>The &quot;<literal>sink</literal>&quot; property</title>
<indexterm><primary>GsfOutfileZip:sink</primary></indexterm><programlisting>  &quot;sink&quot;                     <link linkend="GsfOutput">GsfOutput</link>             : Read / Write / Construct Only</programlisting>
<para>Where the archive is written.</para></refsect2>

</refsect1>




</refentry>