/usr/share/gtk-doc/html/thunarx/ThunarxProviderPlugin.html is in thunar-data 1.6.3-1ubuntu5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ThunarxProviderPlugin</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="Thunar Extensions Reference Manual">
<link rel="up" href="thunarx-abstraction-layer.html" title="Part IV. Abstraction Layer">
<link rel="prev" href="ThunarxPropertyPage.html" title="ThunarxPropertyPage">
<link rel="next" href="ThunarxRenamer.html" title="ThunarxRenamer">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="ThunarxPropertyPage.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="thunarx-abstraction-layer.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Thunar Extensions Reference Manual</th>
<td><a accesskey="n" href="ThunarxRenamer.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#ThunarxProviderPlugin.synopsis" class="shortcut">Top</a>
|
<a href="#ThunarxProviderPlugin.description" class="shortcut">Description</a>
|
<a href="#ThunarxProviderPlugin.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#ThunarxProviderPlugin.properties" class="shortcut">Properties</a>
</td></tr>
</table>
<div class="refentry">
<a name="ThunarxProviderPlugin"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="ThunarxProviderPlugin.top_of_page"></a>ThunarxProviderPlugin</span></h2>
<p>ThunarxProviderPlugin — The interface to the plugin type registration</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="ThunarxProviderPlugin.stability-level"></a><h2>Stability Level</h2>
Stable, unless otherwise indicated
</div>
<div class="refsynopsisdiv">
<a name="ThunarxProviderPlugin.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include <thunarx/thunarx.h>
<a class="link" href="ThunarxProviderPlugin.html#ThunarxProviderPlugin-struct" title="ThunarxProviderPlugin">ThunarxProviderPlugin</a>;
struct <a class="link" href="ThunarxProviderPlugin.html#ThunarxProviderPluginIface" title="struct ThunarxProviderPluginIface">ThunarxProviderPluginIface</a>;
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="ThunarxProviderPlugin.html#thunarx-provider-plugin-get-resident" title="thunarx_provider_plugin_get_resident ()">thunarx_provider_plugin_get_resident</a>
(<em class="parameter"><code>const <a class="link" href="ThunarxProviderPlugin.html" title="ThunarxProviderPlugin"><span class="type">ThunarxProviderPlugin</span></a> *plugin</code></em>);
<span class="returnvalue">void</span> <a class="link" href="ThunarxProviderPlugin.html#thunarx-provider-plugin-set-resident" title="thunarx_provider_plugin_set_resident ()">thunarx_provider_plugin_set_resident</a>
(<em class="parameter"><code><a class="link" href="ThunarxProviderPlugin.html" title="ThunarxProviderPlugin"><span class="type">ThunarxProviderPlugin</span></a> *plugin</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> resident</code></em>);
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a> <a class="link" href="ThunarxProviderPlugin.html#thunarx-provider-plugin-register-type" title="thunarx_provider_plugin_register_type ()">thunarx_provider_plugin_register_type</a>
(<em class="parameter"><code><a class="link" href="ThunarxProviderPlugin.html" title="ThunarxProviderPlugin"><span class="type">ThunarxProviderPlugin</span></a> *plugin</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> type_parent</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *type_name</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GTypeInfo"><span class="type">GTypeInfo</span></a> *type_info</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GTypeFlags"><span class="type">GTypeFlags</span></a> type_flags</code></em>);
<span class="returnvalue">void</span> <a class="link" href="ThunarxProviderPlugin.html#thunarx-provider-plugin-add-interface" title="thunarx_provider_plugin_add_interface ()">thunarx_provider_plugin_add_interface</a>
(<em class="parameter"><code><a class="link" href="ThunarxProviderPlugin.html" title="ThunarxProviderPlugin"><span class="type">ThunarxProviderPlugin</span></a> *plugin</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> instance_type</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> interface_type</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> *interface_info</code></em>);
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a> <a class="link" href="ThunarxProviderPlugin.html#thunarx-provider-plugin-register-enum" title="thunarx_provider_plugin_register_enum ()">thunarx_provider_plugin_register_enum</a>
(<em class="parameter"><code><a class="link" href="ThunarxProviderPlugin.html" title="ThunarxProviderPlugin"><span class="type">ThunarxProviderPlugin</span></a> *plugin</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Enumeration-and-Flag-Types.html#GEnumValue"><span class="type">GEnumValue</span></a> *const_static_values</code></em>);
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a> <a class="link" href="ThunarxProviderPlugin.html#thunarx-provider-plugin-register-flags" title="thunarx_provider_plugin_register_flags ()">thunarx_provider_plugin_register_flags</a>
(<em class="parameter"><code><a class="link" href="ThunarxProviderPlugin.html" title="ThunarxProviderPlugin"><span class="type">ThunarxProviderPlugin</span></a> *plugin</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Enumeration-and-Flag-Types.html#GFlagsValue"><span class="type">GFlagsValue</span></a> *const_static_values</code></em>);
#define <a class="link" href="ThunarxProviderPlugin.html#THUNARX-DEFINE-TYPE:CAPS" title="THUNARX_DEFINE_TYPE()">THUNARX_DEFINE_TYPE</a> (TN,
t_n,
T_P)
#define <a class="link" href="ThunarxProviderPlugin.html#THUNARX-DEFINE-TYPE-WITH-CODE:CAPS" title="THUNARX_DEFINE_TYPE_WITH_CODE()">THUNARX_DEFINE_TYPE_WITH_CODE</a> (TN,
t_n,
T_P,
_C_)
#define <a class="link" href="ThunarxProviderPlugin.html#THUNARX-DEFINE-ABSTRACT-TYPE:CAPS" title="THUNARX_DEFINE_ABSTRACT_TYPE()">THUNARX_DEFINE_ABSTRACT_TYPE</a> (TN,
t_n,
T_P)
#define <a class="link" href="ThunarxProviderPlugin.html#THUNARX-DEFINE-ABSTRACT-TYPE-WITH-CODE:CAPS" title="THUNARX_DEFINE_ABSTRACT_TYPE_WITH_CODE()">THUNARX_DEFINE_ABSTRACT_TYPE_WITH_CODE</a>(TN,
t_n,
T_P,
_C_)
#define <a class="link" href="ThunarxProviderPlugin.html#THUNARX-DEFINE-TYPE-EXTENDED:CAPS" title="THUNARX_DEFINE_TYPE_EXTENDED()">THUNARX_DEFINE_TYPE_EXTENDED</a> (TypeName,
type_name,
TYPE_PARENT,
flags,
CODE)
#define <a class="link" href="ThunarxProviderPlugin.html#THUNARX-IMPLEMENT-INTERFACE:CAPS" title="THUNARX_IMPLEMENT_INTERFACE()">THUNARX_IMPLEMENT_INTERFACE</a> (TYPE_IFACE,
iface_init)
</pre>
</div>
<div class="refsect1">
<a name="ThunarxProviderPlugin.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
GInterface
+----ThunarxProviderPlugin
</pre>
</div>
<div class="refsect1">
<a name="ThunarxProviderPlugin.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="ThunarxProviderPlugin.html#ThunarxProviderPlugin--resident" title='The "resident" property'>resident</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
</pre>
</div>
<div class="refsect1">
<a name="ThunarxProviderPlugin.description"></a><h2>Description</h2>
<p>
<a class="link" href="ThunarxProviderPlugin.html" title="ThunarxProviderPlugin"><span class="type">ThunarxProviderPlugin</span></a> is the interface to the file manager's type plugin loader implementation. It
provides methods to extensions - also called <span class="emphasis"><em>provider plugins</em></span> - to register dynamic
types and control certain aspects of the plugin (see <a class="link" href="ThunarxProviderPlugin.html#thunarx-provider-plugin-set-resident" title="thunarx_provider_plugin_set_resident ()"><code class="function">thunarx_provider_plugin_set_resident()</code></a>).
</p>
</div>
<div class="refsect1">
<a name="ThunarxProviderPlugin.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="ThunarxProviderPlugin-struct"></a><h3>ThunarxProviderPlugin</h3>
<pre class="programlisting">typedef struct _ThunarxProviderPlugin ThunarxProviderPlugin;</pre>
<p>
The <a class="link" href="ThunarxProviderPlugin.html" title="ThunarxProviderPlugin"><span class="type">ThunarxProviderPlugin</span></a> struct is just a typedef for
the interface instance type.
</p>
</div>
<hr>
<div class="refsect2">
<a name="ThunarxProviderPluginIface"></a><h3>struct ThunarxProviderPluginIface</h3>
<pre class="programlisting">struct ThunarxProviderPluginIface {
gboolean (*get_resident) (const ThunarxProviderPlugin *plugin);
void (*set_resident) (ThunarxProviderPlugin *plugin,
gboolean resident);
GType (*register_type) (ThunarxProviderPlugin *plugin,
GType type_parent,
const gchar *type_name,
const GTypeInfo *type_info,
GTypeFlags type_flags);
void (*add_interface) (ThunarxProviderPlugin *plugin,
GType instance_type,
GType interface_type,
const GInterfaceInfo *interface_info);
GType (*register_enum) (ThunarxProviderPlugin *plugin,
const gchar *name,
const GEnumValue *const_static_values);
GType (*register_flags) (ThunarxProviderPlugin *plugin,
const gchar *name,
const GFlagsValue *const_static_values);
};
</pre>
<p>
Interface with virtual methods implemented by the file manager and
accessible from the extensions.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="ThunarxProviderPluginIface.get-resident"></a>get_resident</code></em> ()</span></p></td>
<td>see <a class="link" href="ThunarxProviderPlugin.html#thunarx-provider-plugin-get-resident" title="thunarx_provider_plugin_get_resident ()"><code class="function">thunarx_provider_plugin_get_resident()</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="ThunarxProviderPluginIface.set-resident"></a>set_resident</code></em> ()</span></p></td>
<td>see <a class="link" href="ThunarxProviderPlugin.html#thunarx-provider-plugin-set-resident" title="thunarx_provider_plugin_set_resident ()"><code class="function">thunarx_provider_plugin_set_resident()</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="ThunarxProviderPluginIface.register-type"></a>register_type</code></em> ()</span></p></td>
<td>see <a class="link" href="ThunarxProviderPlugin.html#thunarx-provider-plugin-register-type" title="thunarx_provider_plugin_register_type ()"><code class="function">thunarx_provider_plugin_register_type()</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="ThunarxProviderPluginIface.add-interface"></a>add_interface</code></em> ()</span></p></td>
<td>see <a class="link" href="ThunarxProviderPlugin.html#thunarx-provider-plugin-add-interface" title="thunarx_provider_plugin_add_interface ()"><code class="function">thunarx_provider_plugin_add_interface()</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="ThunarxProviderPluginIface.register-enum"></a>register_enum</code></em> ()</span></p></td>
<td>see <a class="link" href="ThunarxProviderPlugin.html#thunarx-provider-plugin-register-enum" title="thunarx_provider_plugin_register_enum ()"><code class="function">thunarx_provider_plugin_register_enum()</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="ThunarxProviderPluginIface.register-flags"></a>register_flags</code></em> ()</span></p></td>
<td>see <a class="link" href="ThunarxProviderPlugin.html#thunarx-provider-plugin-register-flags" title="thunarx_provider_plugin_register_flags ()"><code class="function">thunarx_provider_plugin_register_flags()</code></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="thunarx-provider-plugin-get-resident"></a><h3>thunarx_provider_plugin_get_resident ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> thunarx_provider_plugin_get_resident
(<em class="parameter"><code>const <a class="link" href="ThunarxProviderPlugin.html" title="ThunarxProviderPlugin"><span class="type">ThunarxProviderPlugin</span></a> *plugin</code></em>);</pre>
<p>
Determines whether the application is allowed to unload <em class="parameter"><code>plugin</code></em>
from memory when no longer needed and reload it on demand. If
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned, then the application may unload <em class="parameter"><code>plugin</code></em>, else
if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> is returned the application will take care that <em class="parameter"><code>plugin</code></em>
is never unloaded from memory during the lifetime of the application.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
<td>a <a class="link" href="ThunarxProviderPlugin.html" title="ThunarxProviderPlugin"><span class="type">ThunarxProviderPlugin</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>plugin</code></em> will be kept in memory once loaded
for the first time.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="thunarx-provider-plugin-set-resident"></a><h3>thunarx_provider_plugin_set_resident ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> thunarx_provider_plugin_set_resident
(<em class="parameter"><code><a class="link" href="ThunarxProviderPlugin.html" title="ThunarxProviderPlugin"><span class="type">ThunarxProviderPlugin</span></a> *plugin</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> resident</code></em>);</pre>
<p>
This method is used to instruct the application that <em class="parameter"><code>plugin</code></em> must be
kept in memory during the lifetime of the application. The default
is to allow the application to unload <em class="parameter"><code>plugin</code></em> from the memory when
no longer needed. If this method is invoked with a <em class="parameter"><code>resident</code></em> value
of <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> then the application will never try to unload <em class="parameter"><code>plugin</code></em>.
</p>
<p>
This method has no effect unless called from the
<code class="literal">thunar_extension_initialize</code> method of the <em class="parameter"><code>plugin</code></em>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
<td>a <a class="link" href="ThunarxProviderPlugin.html" title="ThunarxProviderPlugin"><span class="type">ThunarxProviderPlugin</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>resident</code></em> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to make <em class="parameter"><code>plugin</code></em> resident in memory.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="thunarx-provider-plugin-register-type"></a><h3>thunarx_provider_plugin_register_type ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a> thunarx_provider_plugin_register_type
(<em class="parameter"><code><a class="link" href="ThunarxProviderPlugin.html" title="ThunarxProviderPlugin"><span class="type">ThunarxProviderPlugin</span></a> *plugin</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> type_parent</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *type_name</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GTypeInfo"><span class="type">GTypeInfo</span></a> *type_info</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GTypeFlags"><span class="type">GTypeFlags</span></a> type_flags</code></em>);</pre>
<p>
Looks up or registers a type that is implemented with a particular type <em class="parameter"><code>plugin</code></em>. If a type with name <em class="parameter"><code>type_name</code></em>
was previously registered, the <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> identifier for the type is returned, otherwise the type is newly registered,
and the resulting <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> identifier returned.
</p>
<p>
When reregistering a type (typically because a module is unloaded then reloaded, and reinitialized), module and
<em class="parameter"><code>type_parent</code></em> must be the same as they were previously.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
<td>a <a class="link" href="ThunarxProviderPlugin.html" title="ThunarxProviderPlugin"><span class="type">ThunarxProviderPlugin</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type_parent</code></em> :</span></p></td>
<td>the type for the parent class.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type_name</code></em> :</span></p></td>
<td>name for the type.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type_info</code></em> :</span></p></td>
<td>type information structure.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type_flags</code></em> :</span></p></td>
<td>flags field providing details about the type.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the new or existing type id.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="thunarx-provider-plugin-add-interface"></a><h3>thunarx_provider_plugin_add_interface ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> thunarx_provider_plugin_add_interface
(<em class="parameter"><code><a class="link" href="ThunarxProviderPlugin.html" title="ThunarxProviderPlugin"><span class="type">ThunarxProviderPlugin</span></a> *plugin</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> instance_type</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> interface_type</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> *interface_info</code></em>);</pre>
<p>
Registers an additional interface for a type, whose interface lives in the given type <em class="parameter"><code>plugin</code></em>.
If the interface was already registered for the type in this <em class="parameter"><code>plugin</code></em>, nothing will be done.
</p>
<p>
As long as any instances of the type exist, the type <em class="parameter"><code>plugin</code></em> will not be unloaded.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
<td>a <a class="link" href="ThunarxProviderPlugin.html" title="ThunarxProviderPlugin"><span class="type">ThunarxProviderPlugin</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance_type</code></em> :</span></p></td>
<td>type to which to add the interface.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>interface_type</code></em> :</span></p></td>
<td>interface type to add.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>interface_info</code></em> :</span></p></td>
<td>type information structure.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="thunarx-provider-plugin-register-enum"></a><h3>thunarx_provider_plugin_register_enum ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a> thunarx_provider_plugin_register_enum
(<em class="parameter"><code><a class="link" href="ThunarxProviderPlugin.html" title="ThunarxProviderPlugin"><span class="type">ThunarxProviderPlugin</span></a> *plugin</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Enumeration-and-Flag-Types.html#GEnumValue"><span class="type">GEnumValue</span></a> *const_static_values</code></em>);</pre>
<p>
Looks up or registers an enumeration that is implemented with a particular type <em class="parameter"><code>plugin</code></em>. If a type
with name <em class="parameter"><code>name</code></em> was previously registered, the <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> identifier for the type is returned,
otherwise the type is newly registered, and the resulting <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> identifier returned.
</p>
<p>
As long as any instances of the type exist, the type <em class="parameter"><code>plugin</code></em> will not be unloaded.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
<td>a <a class="link" href="ThunarxProviderPlugin.html" title="ThunarxProviderPlugin"><span class="type">ThunarxProviderPlugin</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>the name for the type.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>const_static_values</code></em> :</span></p></td>
<td>an array of <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Enumeration-and-Flag-Types.html#GEnumValue"><span class="type">GEnumValue</span></a> structs for the possible enumeration values.
The array is terminated by a struct with all members being <code class="literal">0</code>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the new or existing type id.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="thunarx-provider-plugin-register-flags"></a><h3>thunarx_provider_plugin_register_flags ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a> thunarx_provider_plugin_register_flags
(<em class="parameter"><code><a class="link" href="ThunarxProviderPlugin.html" title="ThunarxProviderPlugin"><span class="type">ThunarxProviderPlugin</span></a> *plugin</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Enumeration-and-Flag-Types.html#GFlagsValue"><span class="type">GFlagsValue</span></a> *const_static_values</code></em>);</pre>
<p>
Looks up or registers a flags type that is implemented with a particular type <em class="parameter"><code>plugin</code></em>. If a type with name
qname was previously registered, the <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> identifier for the type is returned, otherwise the type is newly
registered, and the resulting <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> identifier returned.
</p>
<p>
As long as any instances of the type exist, the type <em class="parameter"><code>plugin</code></em> will not be unloaded.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
<td>a <a class="link" href="ThunarxProviderPlugin.html" title="ThunarxProviderPlugin"><span class="type">ThunarxProviderPlugin</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>name for the type.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>const_static_values</code></em> :</span></p></td>
<td>an array of <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Enumeration-and-Flag-Types.html#GFlagsValue"><span class="type">GFlagsValue</span></a> structs for the possible flags values.
The array is terminated by a struct with all members being <code class="literal">0</code>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the new or existing type id.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="THUNARX-DEFINE-TYPE:CAPS"></a><h3>THUNARX_DEFINE_TYPE()</h3>
<pre class="programlisting">#define THUNARX_DEFINE_TYPE(TN, t_n, T_P) THUNARX_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, {})
</pre>
<p>
A convenience macro for plugin type implementations, which declares a class
initialization function, a static variable named <em class="parameter"><code>t_n</code></em>_parent_class
pointing to the parent and a static variable named <em class="parameter"><code>t_n</code></em>_type containing
the <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> of the type to define. Furthermore, it defines a <em class="parameter"><code>t_n</code></em><code class="function">_get_type()</code>
function and a <em class="parameter"><code>t_n</code></em><code class="function">_register_type()</code> function. See <a class="link" href="ThunarxProviderPlugin.html#THUNARX-DEFINE-TYPE-EXTENDED:CAPS" title="THUNARX_DEFINE_TYPE_EXTENDED()"><code class="function">THUNARX_DEFINE_TYPE_EXTENDED()</code></a>
for an example.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>TN</code></em> :</span></p></td>
<td>the name of the new type, in Camel case.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>t_n</code></em> :</span></p></td>
<td>the name of the new type, in lowercase, with words separated by '_'.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>T_P</code></em> :</span></p></td>
<td>the <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> of the parent type.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="THUNARX-DEFINE-TYPE-WITH-CODE:CAPS"></a><h3>THUNARX_DEFINE_TYPE_WITH_CODE()</h3>
<pre class="programlisting">#define THUNARX_DEFINE_TYPE_WITH_CODE(TN, t_n, T_P, _C_) THUNARX_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, _C_)
</pre>
<p>
A convenience macro for plugin type implementations. Similar to <a class="link" href="ThunarxProviderPlugin.html#THUNARX-DEFINE-TYPE:CAPS" title="THUNARX_DEFINE_TYPE()"><code class="function">THUNARX_DEFINE_TYPE()</code></a>, but
allows to insert custom code into the <code class="code">*_get_type()</code> function, e.g. interface
implemenations via <a class="link" href="ThunarxProviderPlugin.html#THUNARX-IMPLEMENT-INTERFACE:CAPS" title="THUNARX_IMPLEMENT_INTERFACE()"><code class="function">THUNARX_IMPLEMENT_INTERFACE()</code></a>. See <a class="link" href="ThunarxProviderPlugin.html#THUNARX-DEFINE-TYPE-EXTENDED:CAPS" title="THUNARX_DEFINE_TYPE_EXTENDED()"><code class="function">THUNARX_DEFINE_TYPE_EXTENDED()</code></a> for
an example.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>TN</code></em> :</span></p></td>
<td>the name of the new type, in Camel case.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>t_n</code></em> :</span></p></td>
<td>the name of the new type, in lowercase, with words separated by '_'.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>T_P</code></em> :</span></p></td>
<td>the <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> of the parent type.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>_C_</code></em> :</span></p></td>
<td>custom code that gets inserted in the <code class="code">*_get_type()</code> function.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="THUNARX-DEFINE-ABSTRACT-TYPE:CAPS"></a><h3>THUNARX_DEFINE_ABSTRACT_TYPE()</h3>
<pre class="programlisting">#define THUNARX_DEFINE_ABSTRACT_TYPE(TN, t_n, T_P) THUNARX_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, G_TYPE_FLAG_ABSTRACT, {})
</pre>
<p>
A convenience macro for plugin type implementations. Similar to <a class="link" href="ThunarxProviderPlugin.html#THUNARX-DEFINE-TYPE:CAPS" title="THUNARX_DEFINE_TYPE()"><code class="function">THUNARX_DEFINE_TYPE()</code></a>, but defines
an abstract type. See <a class="link" href="ThunarxProviderPlugin.html#THUNARX-DEFINE-TYPE-EXTENDED:CAPS" title="THUNARX_DEFINE_TYPE_EXTENDED()"><code class="function">THUNARX_DEFINE_TYPE_EXTENDED()</code></a> for an example.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>TN</code></em> :</span></p></td>
<td>the name of the new type, in Camel case.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>t_n</code></em> :</span></p></td>
<td>the name of the new type, in lowercase, with words separated by '_'.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>T_P</code></em> :</span></p></td>
<td>the <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> of the parent type.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="THUNARX-DEFINE-ABSTRACT-TYPE-WITH-CODE:CAPS"></a><h3>THUNARX_DEFINE_ABSTRACT_TYPE_WITH_CODE()</h3>
<pre class="programlisting">#define THUNARX_DEFINE_ABSTRACT_TYPE_WITH_CODE(TN, t_n, T_P, _C_) THUNARX_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, G_TYPE_FLAG_ABSTRACT, _C_)
</pre>
<p>
A convenience macro for plugin type implementations. Similar to <a class="link" href="ThunarxProviderPlugin.html#THUNARX-DEFINE-TYPE-WITH-CODE:CAPS" title="THUNARX_DEFINE_TYPE_WITH_CODE()"><code class="function">THUNARX_DEFINE_TYPE_WITH_CODE()</code></a>, but defines
an abstract type and allows to insert custom code into the <code class="code">*_get_type()</code> function, e.g. interface
implementations via <a class="link" href="ThunarxProviderPlugin.html#THUNARX-IMPLEMENT-INTERFACE:CAPS" title="THUNARX_IMPLEMENT_INTERFACE()"><code class="function">THUNARX_IMPLEMENT_INTERFACE()</code></a>. See <a class="link" href="ThunarxProviderPlugin.html#THUNARX-DEFINE-TYPE-EXTENDED:CAPS" title="THUNARX_DEFINE_TYPE_EXTENDED()"><code class="function">THUNARX_DEFINE_TYPE_EXTENDED()</code></a> for an example.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>TN</code></em> :</span></p></td>
<td>the name of the new type, in Camel case.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>t_n</code></em> :</span></p></td>
<td>the name of the new type, in lowercase, with words separated by '_'.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>T_P</code></em> :</span></p></td>
<td>the <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> of the parent type.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>_C_</code></em> :</span></p></td>
<td>custom code that gets inserted in the <code class="code">*_get_type()</code> function.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="THUNARX-DEFINE-TYPE-EXTENDED:CAPS"></a><h3>THUNARX_DEFINE_TYPE_EXTENDED()</h3>
<pre class="programlisting">#define THUNARX_DEFINE_TYPE_EXTENDED(TypeName, type_name, TYPE_PARENT, flags, CODE)</pre>
<p>
The most general convenience macro for plugin type implementations, on which <a class="link" href="ThunarxProviderPlugin.html#THUNARX-DEFINE-TYPE:CAPS" title="THUNARX_DEFINE_TYPE()"><code class="function">THUNARX_DEFINE_TYPE()</code></a>, <a class="link" href="ThunarxProviderPlugin.html#THUNARX-DEFINE-TYPE-WITH-CODE:CAPS" title="THUNARX_DEFINE_TYPE_WITH_CODE()"><code class="function">THUNARX_DEFINE_TYPE_WITH_CODE()</code></a>,
<a class="link" href="ThunarxProviderPlugin.html#THUNARX-DEFINE-ABSTRACT-TYPE:CAPS" title="THUNARX_DEFINE_ABSTRACT_TYPE()"><code class="function">THUNARX_DEFINE_ABSTRACT_TYPE()</code></a> and <a class="link" href="ThunarxProviderPlugin.html#THUNARX-DEFINE-ABSTRACT-TYPE-WITH-CODE:CAPS" title="THUNARX_DEFINE_ABSTRACT_TYPE_WITH_CODE()"><code class="function">THUNARX_DEFINE_ABSTRACT_TYPE_WITH_CODE()</code></a> are based.
</p>
<div class="informalexample"><pre class="programlisting">
THUNARX_DEFINE_TYPE_EXTENDED (FooExtension,
foo_extension,
G_TYPE_OBJECT,
0,
THUNARX_IMPLEMENT_INTERFACE (TYPE_BAR,
foo_extension_bar_init));
</pre></div>
<p>
expands to
</p>
<div class="informalexample"><pre class="programlisting">
static gpointer foo_extension_parent_class = NULL;
static GType foo_extension_type = G_TYPE_INVALID;
static void foo_extension_init (FooExtension *self);
static void foo_extension_class_init (FooExtensionClass *klass);
static void foo_extension_class_intern_init (FooExtensionClass *klass)
{
foo_extension_parent_class = g_type_class_peek_parent (klass);
foo_extension_class_init (klass);
}
GType
foo_extension_get_type (void)
{
return foo_extension_type;
}
void
foo_extension_register_type (ThunarxProviderPlugin *plugin)
{
GType thunarx_define_type_id;
static const thunarx_define_type_info =
{
sizeof (FooExtensionClass),
NULL,
NULL,
(GClassInitFunc) foo_extension_class_intern_init,
NULL,
NULL,
sizeof (FooExtension),
0,
(GInstanceInitFunc) foo_extension_init,
NULL,
};
thunarx_define_type_id = thunarx_provider_plugin_register_type (thunarx_define_type_plugin, G_TYPE_OBJECT,
"FooExtension", &thunarx_define_type_info, 0);
{
static const GInterfaceInfo thunarx_implement_interface_info =
{
(GInterfaceInitFunc) foo_extension_bar_init,
};
thunarx_provider_plugin_add_interface (thunarx_define_type_plugin, thunarx_define_type_id,
TYPE_BAR, &thunarx_implement_interface_info);
};
foo_extension_type = thunarx_define_type_id;
}
</pre></div>
<p>
The only pieces which have to be manually provided are the definitions of the instance and
class structure and the definitions of the instance and class init functions.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>TypeName</code></em> :</span></p></td>
<td>The name of the new type, in Camel case.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type_name</code></em> :</span></p></td>
<td>The name of the new type, in lowercase, with words separated by '_'.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>TYPE_PARENT</code></em> :</span></p></td>
<td>The <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> of the parent type.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GTypeFlags"><span class="type">GTypeFlags</span></a> to pass to <a class="link" href="ThunarxProviderPlugin.html#thunarx-provider-plugin-register-type" title="thunarx_provider_plugin_register_type ()"><code class="function">thunarx_provider_plugin_register_type()</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>CODE</code></em> :</span></p></td>
<td>Custom code that gets inserted in the <code class="code">*_register_type()</code> function.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="THUNARX-IMPLEMENT-INTERFACE:CAPS"></a><h3>THUNARX_IMPLEMENT_INTERFACE()</h3>
<pre class="programlisting">#define THUNARX_IMPLEMENT_INTERFACE(TYPE_IFACE, iface_init)</pre>
<p>
A convenience macro to ease interface addition in the <em class="parameter"><code>_C_</code></em> section of <a class="link" href="ThunarxProviderPlugin.html#THUNARX-DEFINE-TYPE-WITH-CODE:CAPS" title="THUNARX_DEFINE_TYPE_WITH_CODE()"><code class="function">THUNARX_DEFINE_TYPE_WITH_CODE()</code></a>
or <a class="link" href="ThunarxProviderPlugin.html#THUNARX-DEFINE-ABSTRACT-TYPE-WITH-CODE:CAPS" title="THUNARX_DEFINE_ABSTRACT_TYPE_WITH_CODE()"><code class="function">THUNARX_DEFINE_ABSTRACT_TYPE_WITH_CODE()</code></a>. See <a class="link" href="ThunarxProviderPlugin.html#THUNARX-DEFINE-TYPE-EXTENDED:CAPS" title="THUNARX_DEFINE_TYPE_EXTENDED()"><code class="function">THUNARX_DEFINE_TYPE_EXTENDED()</code></a> for an example.
</p>
<p>
Note that this macro can only be used together with the <code class="code">THUNARX_DEFINE_*</code> macros, since
it depends on variable names used by those macros.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>TYPE_IFACE</code></em> :</span></p></td>
<td>the <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> of the interface to add.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iface_init</code></em> :</span></p></td>
<td>the interface init function.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="ThunarxProviderPlugin.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="ThunarxProviderPlugin--resident"></a><h3>The <code class="literal">"resident"</code> property</h3>
<pre class="programlisting"> "resident" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
<p>
Tells whether a plugin must reside in memory once loaded for
the first time. See <a class="link" href="ThunarxProviderPlugin.html#thunarx-provider-plugin-get-resident" title="thunarx_provider_plugin_get_resident ()"><code class="function">thunarx_provider_plugin_get_resident()</code></a> and
<a class="link" href="ThunarxProviderPlugin.html#thunarx-provider-plugin-set-resident" title="thunarx_provider_plugin_set_resident ()"><code class="function">thunarx_provider_plugin_set_resident()</code></a> for more details.
</p>
<p>Default value: FALSE</p>
</div>
</div>
<div class="refsect1">
<a name="ThunarxProviderPlugin.see-also"></a><h2>See Also</h2>
<p>
<a class="link" href="ThunarxProviderFactory.html" title="ThunarxProviderFactory"><span class="type">ThunarxProviderFactory</span></a>
</p>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18</div>
</body>
</html>
|