/usr/share/gtk-doc/html/libpeas/PeasExtensionSet.html is in libpeas-doc 1.12.1-2.
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 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Peas Reference Manual: PeasExtensionSet</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="Peas Reference Manual">
<link rel="up" href="ch01.html" title="Core Classes">
<link rel="prev" href="libpeas-PeasExtension.html" title="PeasExtension">
<link rel="next" href="PeasExtensionBase.html" title="PeasExtensionBase">
<meta name="generator" content="GTK-Doc V1.21 (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="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
<a href="#PeasExtensionSet.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
<a href="#PeasExtensionSet.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties"> <span class="dim">|</span>
<a href="#PeasExtensionSet.properties" class="shortcut">Properties</a></span><span id="nav_signals"> <span class="dim">|</span>
<a href="#PeasExtensionSet.signals" class="shortcut">Signals</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="libpeas-PeasExtension.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="PeasExtensionBase.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="PeasExtensionSet"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="PeasExtensionSet.top_of_page"></a>PeasExtensionSet</span></h2>
<p>PeasExtensionSet — Proxy for a set of extensions of the same type.</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="PeasExtensionSet.functions"></a><h2>Functions</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<span class="c_punctuation">(</span><a class="link" href="PeasExtensionSet.html#PeasExtensionSetForeachFunc" title="PeasExtensionSetForeachFunc ()">*PeasExtensionSetForeachFunc</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="PeasExtensionSet.html#peas-extension-set-call" title="peas_extension_set_call ()">peas_extension_set_call</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="PeasExtensionSet.html#peas-extension-set-call-valist" title="peas_extension_set_call_valist ()">peas_extension_set_call_valist</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="PeasExtensionSet.html#peas-extension-set-callv" title="peas_extension_set_callv ()">peas_extension_set_callv</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="PeasExtensionSet.html#peas-extension-set-foreach" title="peas_extension_set_foreach ()">peas_extension_set_foreach</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libpeas-PeasExtension.html#PeasExtension" title="PeasExtension"><span class="returnvalue">PeasExtension</span></a> *
</td>
<td class="function_name">
<a class="link" href="PeasExtensionSet.html#peas-extension-set-get-extension" title="peas_extension_set_get_extension ()">peas_extension_set_get_extension</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="returnvalue">PeasExtensionSet</span></a> *
</td>
<td class="function_name">
<a class="link" href="PeasExtensionSet.html#peas-extension-set-new" title="peas_extension_set_new ()">peas_extension_set_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="returnvalue">PeasExtensionSet</span></a> *
</td>
<td class="function_name">
<a class="link" href="PeasExtensionSet.html#peas-extension-set-newv" title="peas_extension_set_newv ()">peas_extension_set_newv</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="returnvalue">PeasExtensionSet</span></a> *
</td>
<td class="function_name">
<a class="link" href="PeasExtensionSet.html#peas-extension-set-new-valist" title="peas_extension_set_new_valist ()">peas_extension_set_new_valist</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="PeasExtensionSet.properties"></a><h2>Properties</h2>
<div class="informaltable"><table border="0">
<colgroup>
<col width="150px" class="properties_type">
<col width="300px" class="properties_name">
<col width="200px" class="properties_flags">
</colgroup>
<tbody>
<tr>
<td class="property_type"><span class="type">gpointer</span></td>
<td class="property_name"><a class="link" href="PeasExtensionSet.html#PeasExtensionSet--construct-properties" title="The “construct-properties” property">construct-properties</a></td>
<td class="property_flags">Write / Construct Only</td>
</tr>
<tr>
<td class="property_type">
<a class="link" href="PeasEngine.html" title="PeasEngine"><span class="type">PeasEngine</span></a> *</td>
<td class="property_name"><a class="link" href="PeasExtensionSet.html#PeasExtensionSet--engine" title="The “engine” property">engine</a></td>
<td class="property_flags">Read / Write / Construct Only</td>
</tr>
<tr>
<td class="property_type">
<span class="type">GType</span> *</td>
<td class="property_name"><a class="link" href="PeasExtensionSet.html#PeasExtensionSet--extension-type" title="The “extension-type” property">extension-type</a></td>
<td class="property_flags">Read / Write / Construct Only</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="PeasExtensionSet.signals"></a><h2>Signals</h2>
<div class="informaltable"><table border="0">
<colgroup>
<col width="150px" class="signals_return">
<col width="300px" class="signals_name">
<col width="200px" class="signals_flags">
</colgroup>
<tbody>
<tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="PeasExtensionSet.html#PeasExtensionSet-extension-added" title="The “extension-added” signal">extension-added</a></td>
<td class="signal_flags">Run Last</td>
</tr>
<tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="PeasExtensionSet.html#PeasExtensionSet-extension-removed" title="The “extension-removed” signal">extension-removed</a></td>
<td class="signal_flags">Run Last</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="PeasExtensionSet.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="PeasExtensionSet.html#PeasExtensionSet-struct" title="struct PeasExtensionSet">PeasExtensionSet</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="PeasExtensionSet.html#PeasExtensionSetClass" title="struct PeasExtensionSetClass">PeasExtensionSetClass</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="PeasExtensionSet.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen"> GObject
<span class="lineart">╰──</span> PeasExtensionSet
</pre>
</div>
<div class="refsect1">
<a name="PeasExtensionSet.description"></a><h2>Description</h2>
<p>A <a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a> is an object which proxies method calls to a set
of actual extensions. The application writer will use these objects
in order to call methods on several instances of an actual extension
exported by all the currently loaded plugins.</p>
<p><a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a> will automatically track loading and unloading of
the plugins, and signal appearance and disappearance of new
extension instances. You should connect to those signals if you
wish to call specific methods on loading or unloading time.</p>
<p>Here is the code for a typical setup of <a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a> with
<a class="link" href="PeasActivatable.html" title="PeasActivatable"><span class="type">PeasActivatable</span></a> as the watched extension point, and <span class="type">GtkWindow</span>
instances as the target objects:</p>
<div class="informalexample">
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="listing_lines" align="right"><pre>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</pre></td>
<td class="listing_code"><pre class="programlisting"><span class="gtkdoc kwb">static void</span>
<span class="function">on_extension_added</span> <span class="gtkdoc opt">(</span>PeasExtensionSet <span class="gtkdoc opt">*</span>set<span class="gtkdoc opt">,</span>
PeasPluginInfo <span class="gtkdoc opt">*</span>info<span class="gtkdoc opt">,</span>
PeasActivatable <span class="gtkdoc opt">*</span>activatable<span class="gtkdoc opt">)</span>
<span class="gtkdoc opt">{</span>
<span class="function"><a href="PeasActivatable.html#peas-activatable-activate">peas_activatable_activate</a></span> <span class="gtkdoc opt">(</span>activatable<span class="gtkdoc opt">);</span>
<span class="gtkdoc opt">}</span>
<span class="gtkdoc kwb">static void</span>
<span class="function">on_extension_removed</span> <span class="gtkdoc opt">(</span>PeasExtensionSet <span class="gtkdoc opt">*</span>set<span class="gtkdoc opt">,</span>
PeasPluginInfo <span class="gtkdoc opt">*</span>info<span class="gtkdoc opt">,</span>
PeasActivatable <span class="gtkdoc opt">*</span>activatable<span class="gtkdoc opt">)</span>
<span class="gtkdoc opt">{</span>
<span class="function"><a href="PeasActivatable.html#peas-activatable-deactivate">peas_activatable_deactivate</a></span> <span class="gtkdoc opt">(</span>activatable<span class="gtkdoc opt">);</span>
<span class="gtkdoc opt">}</span>
PeasExtensionSet <span class="gtkdoc opt">*</span>
<span class="function">setup_extension_set</span> <span class="gtkdoc opt">(</span>PeasEngine <span class="gtkdoc opt">*</span>engine<span class="gtkdoc opt">,</span>
GtkWindow <span class="gtkdoc opt">*</span>window<span class="gtkdoc opt">)</span>
<span class="gtkdoc opt">{</span>
PeasExtensionSet <span class="gtkdoc opt">*</span>set<span class="gtkdoc opt">;</span>
set <span class="gtkdoc opt">=</span> <span class="function"><a href="PeasExtensionSet.html#peas-extension-set-new">peas_extension_set_new</a></span> <span class="gtkdoc opt">(</span>engine<span class="gtkdoc opt">,</span> PEAS_TYPE_ACTIVATABLE<span class="gtkdoc opt">,</span>
<span class="string">"object"</span><span class="gtkdoc opt">,</span> window<span class="gtkdoc opt">,</span> NULL<span class="gtkdoc opt">);</span>
<span class="function"><a href="PeasExtensionSet.html#peas-extension-set-foreach">peas_extension_set_foreach</a></span> <span class="gtkdoc opt">(</span>set<span class="gtkdoc opt">,</span>
<span class="gtkdoc opt">(</span>PeasExtensionSetForeachFunc<span class="gtkdoc opt">)</span> on_extension_added<span class="gtkdoc opt">,</span>
NULL<span class="gtkdoc opt">);</span>
<span class="function">g_signal_connect</span> <span class="gtkdoc opt">(</span>set<span class="gtkdoc opt">,</span> <span class="string">"extension-added"</span><span class="gtkdoc opt">,</span>
<span class="function">G_CALLBACK</span> <span class="gtkdoc opt">(</span>on_extension_added<span class="gtkdoc opt">),</span> NULL<span class="gtkdoc opt">);</span>
<span class="function">g_signal_connect</span> <span class="gtkdoc opt">(</span>set<span class="gtkdoc opt">,</span> <span class="string">"extension-removed"</span><span class="gtkdoc opt">,</span>
<span class="function">G_CALLBACK</span> <span class="gtkdoc opt">(</span>on_extension_removed<span class="gtkdoc opt">),</span> NULL<span class="gtkdoc opt">);</span>
<span class="keyword">return</span> set<span class="gtkdoc opt">;</span>
<span class="gtkdoc opt">}</span></pre></td>
</tr>
</tbody>
</table>
</div>
<p></p>
</div>
<div class="refsect1">
<a name="PeasExtensionSet.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="PeasExtensionSetForeachFunc"></a><h3>PeasExtensionSetForeachFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
<span class="c_punctuation">(</span>*PeasExtensionSetForeachFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a> *set</code></em>,
<em class="parameter"><code><a class="link" href="PeasPluginInfo.html" title="PeasPluginInfo"><span class="type">PeasPluginInfo</span></a> *info</code></em>,
<em class="parameter"><code><a class="link" href="libpeas-PeasExtension.html#PeasExtension" title="PeasExtension"><span class="type">PeasExtension</span></a> *exten</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
<p>This function is passed to <a class="link" href="PeasExtensionSet.html#peas-extension-set-foreach" title="peas_extension_set_foreach ()"><code class="function">peas_extension_set_foreach()</code></a> and
will be called for each extension in <em class="parameter"><code>set</code></em>
.</p>
<div class="refsect3">
<a name="id-1.2.2.5.9.2.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>set</p></td>
<td class="parameter_description"><p>A <a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>info</p></td>
<td class="parameter_description"><p>A <a class="link" href="PeasPluginInfo.html" title="PeasPluginInfo"><span class="type">PeasPluginInfo</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>exten</p></td>
<td class="parameter_description"><p>A <a class="link" href="libpeas-PeasExtension.html#PeasExtension" title="PeasExtension"><span class="type">PeasExtension</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>data</p></td>
<td class="parameter_description"><p>Optional data passed to the function.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since 1.2</p>
</div>
<hr>
<div class="refsect2">
<a name="peas-extension-set-call"></a><h3>peas_extension_set_call ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
peas_extension_set_call (<em class="parameter"><code><a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a> *set</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *method_name</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<div class="warning">
<p><code class="literal">peas_extension_set_call</code> has been deprecated since version 1.2 and should not be used in newly-written code.</p>
<p>Use <a class="link" href="PeasExtensionSet.html#peas-extension-set-foreach" title="peas_extension_set_foreach ()"><code class="function">peas_extension_set_foreach()</code></a> instead.</p>
</div>
<p>Call a method on all the <a class="link" href="libpeas-PeasExtension.html#PeasExtension" title="PeasExtension"><span class="type">PeasExtension</span></a> instances contained in <em class="parameter"><code>set</code></em>
.</p>
<p>See <a class="link" href="libpeas-PeasExtension.html#peas-extension-call" title="peas_extension_call ()"><code class="function">peas_extension_call()</code></a> for more information.</p>
<div class="refsect3">
<a name="id-1.2.2.5.9.3.7"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>set</p></td>
<td class="parameter_description"><p>A <a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>method_name</p></td>
<td class="parameter_description"><p>the name of the method that should be called.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p>arguments for the method.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.2.5.9.3.8"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> on successful call.</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="peas-extension-set-call-valist"></a><h3>peas_extension_set_call_valist ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
peas_extension_set_call_valist (<em class="parameter"><code><a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a> *set</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *method_name</code></em>,
<em class="parameter"><code><span class="type">va_list</span> va_args</code></em>);</pre>
<div class="warning">
<p><code class="literal">peas_extension_set_call_valist</code> has been deprecated since version 1.2 and should not be used in newly-written code.</p>
<p>Use <a class="link" href="PeasExtensionSet.html#peas-extension-set-foreach" title="peas_extension_set_foreach ()"><code class="function">peas_extension_set_foreach()</code></a> instead.</p>
</div>
<p>Call a method on all the <a class="link" href="libpeas-PeasExtension.html#PeasExtension" title="PeasExtension"><span class="type">PeasExtension</span></a> instances contained in <em class="parameter"><code>set</code></em>
.</p>
<p>See <a class="link" href="libpeas-PeasExtension.html#peas-extension-call-valist" title="peas_extension_call_valist ()"><code class="function">peas_extension_call_valist()</code></a> for more information.</p>
<div class="refsect3">
<a name="id-1.2.2.5.9.4.7"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>set</p></td>
<td class="parameter_description"><p>A <a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>method_name</p></td>
<td class="parameter_description"><p>the name of the method that should be called.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>va_args</p></td>
<td class="parameter_description"><p>the arguments for the method.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.2.5.9.4.8"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> on successful call.</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="peas-extension-set-callv"></a><h3>peas_extension_set_callv ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
peas_extension_set_callv (<em class="parameter"><code><a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a> *set</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *method_name</code></em>,
<em class="parameter"><code><span class="type">GIArgument</span> *args</code></em>);</pre>
<div class="warning">
<p><code class="literal">peas_extension_set_callv</code> has been deprecated since version 1.2 and should not be used in newly-written code.</p>
<p>Use <a class="link" href="PeasExtensionSet.html#peas-extension-set-foreach" title="peas_extension_set_foreach ()"><code class="function">peas_extension_set_foreach()</code></a> instead.</p>
</div>
<p>Call a method on all the <a class="link" href="libpeas-PeasExtension.html#PeasExtension" title="PeasExtension"><span class="type">PeasExtension</span></a> instances contained in <em class="parameter"><code>set</code></em>
.</p>
<p>See <a class="link" href="libpeas-PeasExtension.html#peas-extension-callv" title="peas_extension_callv ()"><code class="function">peas_extension_callv()</code></a> for more information.</p>
<div class="refsect3">
<a name="id-1.2.2.5.9.5.7"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>set</p></td>
<td class="parameter_description"><p>A <a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>method_name</p></td>
<td class="parameter_description"><p>the name of the method that should be called.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>args</p></td>
<td class="parameter_description"><p>the arguments for the method.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.2.5.9.5.8"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> on successful call.</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="peas-extension-set-foreach"></a><h3>peas_extension_set_foreach ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
peas_extension_set_foreach (<em class="parameter"><code><a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a> *set</code></em>,
<em class="parameter"><code><a class="link" href="PeasExtensionSet.html#PeasExtensionSetForeachFunc" title="PeasExtensionSetForeachFunc ()"><span class="type">PeasExtensionSetForeachFunc</span></a> func</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
<p>Calls <em class="parameter"><code>func</code></em>
for each <a class="link" href="libpeas-PeasExtension.html#PeasExtension" title="PeasExtension"><span class="type">PeasExtension</span></a>.</p>
<div class="refsect3">
<a name="id-1.2.2.5.9.6.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>set</p></td>
<td class="parameter_description"><p>A <a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>func</p></td>
<td class="parameter_description"><p> A function call for each extension. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="The callback is valid only during the call to the method."><span class="acronym">scope call</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>data</p></td>
<td class="parameter_description"><p>Optional data to be passed to the function or <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since 1.2</p>
</div>
<hr>
<div class="refsect2">
<a name="peas-extension-set-get-extension"></a><h3>peas_extension_set_get_extension ()</h3>
<pre class="programlisting"><a class="link" href="libpeas-PeasExtension.html#PeasExtension" title="PeasExtension"><span class="returnvalue">PeasExtension</span></a> *
peas_extension_set_get_extension (<em class="parameter"><code><a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a> *set</code></em>,
<em class="parameter"><code><a class="link" href="PeasPluginInfo.html" title="PeasPluginInfo"><span class="type">PeasPluginInfo</span></a> *info</code></em>);</pre>
<p>Returns the <a class="link" href="libpeas-PeasExtension.html#PeasExtension" title="PeasExtension"><span class="type">PeasExtension</span></a> object corresponding to <em class="parameter"><code>info</code></em>
, or <code class="literal">NULL</code>
if the plugin doesn't provide such an extension.</p>
<div class="refsect3">
<a name="id-1.2.2.5.9.7.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>set</p></td>
<td class="parameter_description"><p>A <a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>info</p></td>
<td class="parameter_description"><p>a <a class="link" href="PeasPluginInfo.html" title="PeasPluginInfo"><span class="type">PeasPluginInfo</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.2.5.9.7.6"></a><h4>Returns</h4>
<p> a reference to a <a class="link" href="libpeas-PeasExtension.html#PeasExtension" title="PeasExtension"><span class="type">PeasExtension</span></a> or <code class="literal">NULL</code>. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="peas-extension-set-new"></a><h3>peas_extension_set_new ()</h3>
<pre class="programlisting"><a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="returnvalue">PeasExtensionSet</span></a> *
peas_extension_set_new (<em class="parameter"><code><a class="link" href="PeasEngine.html" title="PeasEngine"><span class="type">PeasEngine</span></a> *engine</code></em>,
<em class="parameter"><code><span class="type">GType</span> exten_type</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *first_property</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Create a new <a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a> for the <em class="parameter"><code>exten_type</code></em>
extension type.</p>
<p>At any moment, the <a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a> will contain an extension instance for
each loaded plugin which implements the <em class="parameter"><code>exten_type</code></em>
extension type. It does
so by connecting to the relevant signals from <a class="link" href="PeasEngine.html" title="PeasEngine"><span class="type">PeasEngine</span></a>.</p>
<p>The property values passed to <a class="link" href="PeasExtensionSet.html#peas-extension-set-new" title="peas_extension_set_new ()"><code class="function">peas_extension_set_new()</code></a> will be used for the
construction of new extension instances.</p>
<p>If <em class="parameter"><code>engine</code></em>
is <code class="literal">NULL</code>, then the default engine will be used.</p>
<p>See <a class="link" href="PeasEngine.html#peas-engine-create-extension" title="peas_engine_create_extension ()"><code class="function">peas_engine_create_extension()</code></a> for more information.</p>
<div class="refsect3">
<a name="id-1.2.2.5.9.8.9"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>engine</p></td>
<td class="parameter_description"><p> A <a class="link" href="PeasEngine.html" title="PeasEngine"><span class="type">PeasEngine</span></a>, or <code class="literal">NULL</code>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>exten_type</p></td>
<td class="parameter_description"><p>the extension <span class="type">GType</span>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>first_property</p></td>
<td class="parameter_description"><p>the name of the first property.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p>the value of the first property, followed optionally by more
name/value pairs, followed by <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.2.5.9.8.10"></a><h4>Returns</h4>
<p> a new instance of <a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a>.</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="peas-extension-set-newv"></a><h3>peas_extension_set_newv ()</h3>
<pre class="programlisting"><a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="returnvalue">PeasExtensionSet</span></a> *
peas_extension_set_newv (<em class="parameter"><code><a class="link" href="PeasEngine.html" title="PeasEngine"><span class="type">PeasEngine</span></a> *engine</code></em>,
<em class="parameter"><code><span class="type">GType</span> exten_type</code></em>,
<em class="parameter"><code><span class="type">guint</span> n_parameters</code></em>,
<em class="parameter"><code><span class="type">GParameter</span> *parameters</code></em>);</pre>
<p>Create a new <a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a> for the <em class="parameter"><code>exten_type</code></em>
extension type.</p>
<p>If <em class="parameter"><code>engine</code></em>
is <code class="literal">NULL</code>, then the default engine will be used.</p>
<p>See <a class="link" href="PeasExtensionSet.html#peas-extension-set-new" title="peas_extension_set_new ()"><code class="function">peas_extension_set_new()</code></a> for more information.</p>
<div class="refsect3">
<a name="id-1.2.2.5.9.9.7"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>engine</p></td>
<td class="parameter_description"><p> A <a class="link" href="PeasEngine.html" title="PeasEngine"><span class="type">PeasEngine</span></a>, or <code class="literal">NULL</code>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>exten_type</p></td>
<td class="parameter_description"><p>the extension <span class="type">GType</span>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>n_parameters</p></td>
<td class="parameter_description"><p>the length of the <em class="parameter"><code>parameters</code></em>
array.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>parameters</p></td>
<td class="parameter_description"><p> an array of <span class="type">GParameter</span>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=n_parameters]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.2.5.9.9.8"></a><h4>Returns</h4>
<p> a new instance of <a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="peas-extension-set-new-valist"></a><h3>peas_extension_set_new_valist ()</h3>
<pre class="programlisting"><a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="returnvalue">PeasExtensionSet</span></a> *
peas_extension_set_new_valist (<em class="parameter"><code><a class="link" href="PeasEngine.html" title="PeasEngine"><span class="type">PeasEngine</span></a> *engine</code></em>,
<em class="parameter"><code><span class="type">GType</span> exten_type</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *first_property</code></em>,
<em class="parameter"><code><span class="type">va_list</span> var_args</code></em>);</pre>
<p>Create a new <a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a> for the <em class="parameter"><code>exten_type</code></em>
extension type.</p>
<p>If <em class="parameter"><code>engine</code></em>
is <code class="literal">NULL</code>, then the default engine will be used.</p>
<p>See <a class="link" href="PeasExtensionSet.html#peas-extension-set-new" title="peas_extension_set_new ()"><code class="function">peas_extension_set_new()</code></a> for more information.</p>
<div class="refsect3">
<a name="id-1.2.2.5.9.10.7"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>engine</p></td>
<td class="parameter_description"><p> A <a class="link" href="PeasEngine.html" title="PeasEngine"><span class="type">PeasEngine</span></a>, or <code class="literal">NULL</code>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>exten_type</p></td>
<td class="parameter_description"><p>the extension <span class="type">GType</span>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>first_property</p></td>
<td class="parameter_description"><p>the name of the first property.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>var_args</p></td>
<td class="parameter_description"><p>the value of the first property, followed optionally by more
name/value pairs, followed by <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.2.5.9.10.8"></a><h4>Returns</h4>
<p> a new instance of <a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a>.</p>
<p></p>
</div>
</div>
</div>
<div class="refsect1">
<a name="PeasExtensionSet.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="PeasExtensionSet-struct"></a><h3>struct PeasExtensionSet</h3>
<pre class="programlisting">struct PeasExtensionSet;</pre>
<p>The <a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a> structure contains only private data and should only
be accessed using the provided API.</p>
</div>
<hr>
<div class="refsect2">
<a name="PeasExtensionSetClass"></a><h3>struct PeasExtensionSetClass</h3>
<pre class="programlisting">struct PeasExtensionSetClass {
GObjectClass parent_class;
/* Virtual public methods */
#ifndef PEAS_DISABLE_DEPRECATED
gboolean (*call) (PeasExtensionSet *set,
const gchar *method_name,
GIArgument *args);
#else
/* Signals */
void (*extension_added) (PeasExtensionSet *set,
PeasPluginInfo *info,
PeasExtension *exten);
void (*extension_removed) (PeasExtensionSet *set,
PeasPluginInfo *info,
PeasExtension *exten);
};
</pre>
<p>The class structure for <a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a>.</p>
<div class="refsect3">
<a name="id-1.2.2.5.10.3.5"></a><h4>Members</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="300px" class="struct_members_name">
<col class="struct_members_description">
<col width="200px" class="struct_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="struct_member_name"><p><span class="type">GObjectClass</span> <em class="structfield"><code><a name="PeasExtensionSetClass.parent-class"></a>parent_class</code></em>;</p></td>
<td class="struct_member_description"><p>The parent class.</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="PeasExtensionSetClass.call"></a>call</code></em> ()</p></td>
<td class="struct_member_description"><p>The VFunc for <a class="link" href="PeasExtensionSet.html#peas-extension-set-call" title="peas_extension_set_call ()"><code class="function">peas_extension_set_call()</code></a>.</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="PeasExtensionSetClass.extension-added"></a>extension_added</code></em> ()</p></td>
<td class="struct_member_description"><p>Signal class handler for the
<a class="link" href="PeasExtensionSet.html#PeasExtensionSet-extension-added" title="The “extension-added” signal"><span class="type">“extension-added”</span></a> signal.</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="PeasExtensionSetClass.extension-removed"></a>extension_removed</code></em> ()</p></td>
<td class="struct_member_description"><p>Signal class handler for the
<a class="link" href="PeasExtensionSet.html#PeasExtensionSet-extension-removed" title="The “extension-removed” signal"><span class="type">“extension-removed”</span></a> signal.</p></td>
<td class="struct_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="PeasExtensionSet.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="PeasExtensionSet--construct-properties"></a><h3>The <code class="literal">“construct-properties”</code> property</h3>
<pre class="programlisting"> “construct-properties” <span class="type">gpointer</span></pre>
<p>The properties to pass the extensions when creating them.</p>
<p>Flags: Write / Construct Only</p>
</div>
<hr>
<div class="refsect2">
<a name="PeasExtensionSet--engine"></a><h3>The <code class="literal">“engine”</code> property</h3>
<pre class="programlisting"> “engine” <a class="link" href="PeasEngine.html" title="PeasEngine"><span class="type">PeasEngine</span></a> *</pre>
<p>The PeasEngine this set is attached to.</p>
<p>Flags: Read / Write / Construct Only</p>
</div>
<hr>
<div class="refsect2">
<a name="PeasExtensionSet--extension-type"></a><h3>The <code class="literal">“extension-type”</code> property</h3>
<pre class="programlisting"> “extension-type” <span class="type">GType</span> *</pre>
<p>The extension GType managed by this set.</p>
<p>Flags: Read / Write / Construct Only</p>
<p>Allowed values: void</p>
</div>
</div>
<div class="refsect1">
<a name="PeasExtensionSet.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="PeasExtensionSet-extension-added"></a><h3>The <code class="literal">“extension-added”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a> *set,
<a class="link" href="PeasPluginInfo.html" title="PeasPluginInfo"><span class="type">PeasPluginInfo</span></a> *info,
<span class="type">GObject</span> *exten,
<span class="type">gpointer</span> user_data)</pre>
<p>The extension-added signal is emitted when a new extension has been
added to the <a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a>. It happens when a new plugin implementing
the extension set's extension type is loaded.</p>
<p>You should connect to this signal in order to set up the extensions when
they are loaded. Note that this signal is not fired for extensions coming
from plugins that were already loaded when the <a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a> instance
was created. You should set those up by yourself.</p>
<div class="refsect3">
<a name="id-1.2.2.5.12.2.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>set</p></td>
<td class="parameter_description"><p>A <a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>info</p></td>
<td class="parameter_description"><p>A <a class="link" href="PeasPluginInfo.html" title="PeasPluginInfo"><span class="type">PeasPluginInfo</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>exten</p></td>
<td class="parameter_description"><p>A <a class="link" href="libpeas-PeasExtension.html#PeasExtension" title="PeasExtension"><span class="type">PeasExtension</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p>Flags: Run Last</p>
</div>
<hr>
<div class="refsect2">
<a name="PeasExtensionSet-extension-removed"></a><h3>The <code class="literal">“extension-removed”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a> *set,
<a class="link" href="PeasPluginInfo.html" title="PeasPluginInfo"><span class="type">PeasPluginInfo</span></a> *info,
<span class="type">GObject</span> *exten,
<span class="type">gpointer</span> user_data)</pre>
<p>The extension-removed signal is emitted when a new extension is about to be
removed from the <a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a>. It happens when a plugin implementing
the extension set's extension type is unloaded, or when the
<a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a> itself is destroyed.</p>
<p>You should connect to this signal in order to clean up the extensions
when their plugin is unload. Note that this signal is not fired for the
<a class="link" href="libpeas-PeasExtension.html#PeasExtension" title="PeasExtension"><span class="type">PeasExtension</span></a> instances still available when the <a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a>
instance is destroyed. You should clean those up by yourself.</p>
<div class="refsect3">
<a name="id-1.2.2.5.12.3.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>set</p></td>
<td class="parameter_description"><p>A <a class="link" href="PeasExtensionSet.html" title="PeasExtensionSet"><span class="type">PeasExtensionSet</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>info</p></td>
<td class="parameter_description"><p>A <a class="link" href="PeasPluginInfo.html" title="PeasPluginInfo"><span class="type">PeasPluginInfo</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>exten</p></td>
<td class="parameter_description"><p>A <a class="link" href="libpeas-PeasExtension.html#PeasExtension" title="PeasExtension"><span class="type">PeasExtension</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p>Flags: Run Last</p>
</div>
</div>
<div class="refsect1">
<a name="PeasExtensionSet.see-also"></a><h2>See Also</h2>
<p><a class="link" href="libpeas-PeasExtension.html#PeasExtension" title="PeasExtension"><span class="type">PeasExtension</span></a></p>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.21</div>
</body>
</html>
|