/usr/share/gtk-doc/html/bonobo-activation/bonobo-activation-Registration.html is in libbonobo2-dev 2.32.1-3.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Bonobo Activation API Reference Manual: Registration</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="Bonobo Activation API Reference Manual">
<link rel="up" href="api-reference.html" title="API Reference">
<link rel="prev" href="bonobo-activation-Utilities.html" title="Utilities">
<link rel="next" href="bonobo-activation-Debugging.html" title="Debugging">
<meta name="generator" content="GTK-Doc V1.20 (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="10"><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="#bonobo-activation-Registration.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
<a href="#bonobo-activation-Registration.object-hierarchy" class="shortcut">Object Hierarchy</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="api-reference.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="bonobo-activation-Utilities.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="bonobo-activation-Debugging.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="bonobo-activation-Registration"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="bonobo-activation-Registration.top_of_page"></a>Registration</span></h2>
<p>Registration — Registering CORBA objects to Bonobo Activation.</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="bonobo-activation-Registration.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">
<a class="link" href="bonobo-activation-Registration.html#bonobo-activation-unregister-active-server" title="bonobo_activation_unregister_active_server ()">bonobo_activation_unregister_active_server</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="bonobo-activation-Registration.html#bonobo-activation-registration-env-free" title="bonobo_activation_registration_env_free ()">bonobo_activation_registration_env_free</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> *
</td>
<td class="function_name">
<a class="link" href="bonobo-activation-Registration.html#bonobo-activation-registration-env-set" title="bonobo_activation_registration_env_set ()">bonobo_activation_registration_env_set</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="bonobo-activation-Registration.html#bonobo-activation-registration-env-set-global" title="bonobo_activation_registration_env_set_global ()">bonobo_activation_registration_env_set_global</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="bonobo-activation-Registration.html#Bonobo-RegistrationResult" title="Bonobo_RegistrationResult"><span class="returnvalue">Bonobo_RegistrationResult</span></a>
</td>
<td class="function_name">
<a class="link" href="bonobo-activation-Registration.html#bonobo-activation-register-active-server" title="bonobo_activation_register_active_server ()">bonobo_activation_register_active_server</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <span class="returnvalue">char</span> *
</td>
<td class="function_name">
<a class="link" href="bonobo-activation-Registration.html#bonobo-activation-iid-get" title="bonobo_activation_iid_get ()">bonobo_activation_iid_get</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="bonobo-activation-Registration.html#bonobo-activation-plugin-use" title="bonobo_activation_plugin_use ()">bonobo_activation_plugin_use</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="bonobo-activation-Registration.html#bonobo-activation-plugin-unuse" title="bonobo_activation_plugin_unuse ()">bonobo_activation_plugin_unuse</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="bonobo-activation-Registration.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"> </td>
<td class="function_name"><a class="link" href="bonobo-activation-Registration.html#Bonobo-RegistrationResult" title="Bonobo_RegistrationResult">Bonobo_RegistrationResult</a></td>
</tr>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="bonobo-activation-Registration.html#BonoboActivationPlugin" title="BonoboActivationPlugin">BonoboActivationPlugin</a></td>
</tr>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="bonobo-activation-Registration.html#BonoboActivationPluginObject" title="BonoboActivationPluginObject">BonoboActivationPluginObject</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="bonobo-activation-Registration.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">
</pre>
</div>
<div class="refsect1">
<a name="bonobo-activation-Registration.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include <bonobo-activation/bonobo-activation.h>
</pre>
</div>
<div class="refsect1">
<a name="bonobo-activation-Registration.description"></a><h2>Description</h2>
<p>
When writing a component which can be activated through
Bonobo Activation by clients, you need to be register your component
to Bonobo Activation once it is created.
</p>
</div>
<div class="refsect1">
<a name="bonobo-activation-Registration.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="bonobo-activation-unregister-active-server"></a><h3>bonobo_activation_unregister_active_server ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
bonobo_activation_unregister_active_server
(<em class="parameter"><code>const <span class="type">char</span> *iid</code></em>,
<em class="parameter"><code><span class="type">CORBA_Object</span> obj</code></em>);</pre>
<p>Unregisters <em class="parameter"><code>obj</code></em>
with <em class="parameter"><code>iid</code></em>
with the local bonobo-activation-server
daemon.</p>
<div class="refsect3">
<a name="id-1.8.6.8.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>iid</p></td>
<td class="parameter_description"><p>IID of the server to unregister.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>obj</p></td>
<td class="parameter_description"><p>CORBA::Object to unregister.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-activation-registration-env-free"></a><h3>bonobo_activation_registration_env_free ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
bonobo_activation_registration_env_free
(<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> *reg_env</code></em>);</pre>
<p>Frees the registration environment list, <em class="parameter"><code>reg_env</code></em>
.</p>
<div class="refsect3">
<a name="id-1.8.6.8.3.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>reg_env</p></td>
<td class="parameter_description"><p>a GSList pointer.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-activation-registration-env-set"></a><h3>bonobo_activation_registration_env_set ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> *
bonobo_activation_registration_env_set
(<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> *reg_env</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *value</code></em>);</pre>
<p>Sets the environment variable <em class="parameter"><code>name</code></em>
to <em class="parameter"><code>value</code></em>
in the
registration environment list <em class="parameter"><code>reg_env</code></em>
.</p>
<div class="refsect3">
<a name="id-1.8.6.8.4.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>reg_env</p></td>
<td class="parameter_description"><p>a GSList pointer.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>name</p></td>
<td class="parameter_description"><p>the name of the env variable (must not be <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>).</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>the value of the env variable (may be <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>).</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.8.6.8.4.6"></a><h4>Returns</h4>
<p> the new start of <em class="parameter"><code>reg_env</code></em>
.</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-activation-registration-env-set-global"></a><h3>bonobo_activation_registration_env_set_global ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
bonobo_activation_registration_env_set_global
(<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> *reg_env</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> append_if_existing</code></em>);</pre>
<p>Sets the global registration environment list with the
contents of <em class="parameter"><code>reg_env</code></em>
. If <em class="parameter"><code>append_if_existing</code></em>
is set to
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, the an existing global list will be overwritten.</p>
<div class="refsect3">
<a name="id-1.8.6.8.5.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>reg_env</p></td>
<td class="parameter_description"><p>a GSList pointer.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>append_if_existing</p></td>
<td class="parameter_description"><p>whether or not to append to the global list.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-activation-register-active-server"></a><h3>bonobo_activation_register_active_server ()</h3>
<pre class="programlisting"><a class="link" href="bonobo-activation-Registration.html#Bonobo-RegistrationResult" title="Bonobo_RegistrationResult"><span class="returnvalue">Bonobo_RegistrationResult</span></a>
bonobo_activation_register_active_server
(<em class="parameter"><code>const <span class="type">char</span> *iid</code></em>,
<em class="parameter"><code><span class="type">CORBA_Object</span> obj</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> *reg_env</code></em>);</pre>
<p>Registers <em class="parameter"><code>obj</code></em>
with <em class="parameter"><code>iid</code></em>
with the local bonobo-activation-server
daemon.</p>
<p>If <em class="parameter"><code>reg_env</code></em>
is not <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, <em class="parameter"><code>obj</code></em>
will be registered in such a
way that if a client who's environment differs from the
environment specified in <em class="parameter"><code>reg_env</code></em>
, then another attempt
to activate <em class="parameter"><code>iid</code></em>
will not result in a reference to <em class="parameter"><code>obj</code></em>
being returned, but rather another instance of <em class="parameter"><code>iid</code></em>
being
activated.</p>
<p>So, for example, you can ensure that a seperate instance
of the component is activated for each distinct X display
(and screen) by:</p>
<div class="informalexample"><pre class="programlisting">
display_name = gdk_display_get_name (gdk_display_get_default());
reg_env = bonobo_activation_registration_env_set (
reg_env, "DISPLAY", display_name);
bonobo_activation_register_active_server (iid, active_server, reg_env);
bonobo_activation_registration_env_free (reg_env);
</pre></div>
<p>If <em class="parameter"><code>reg_env</code></em>
is <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the global registration environment
list will be used if it is set. See
<a class="link" href="bonobo-activation-Registration.html#bonobo-activation-registration-env-set-global" title="bonobo_activation_registration_env_set_global ()"><code class="function">bonobo_activation_registration_env_set_global()</code></a>.</p>
<div class="refsect3">
<a name="id-1.8.6.8.6.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>iid</p></td>
<td class="parameter_description"><p>IID of the server to register.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>obj</p></td>
<td class="parameter_description"><p>CORBA::Object to register.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>reg_env</p></td>
<td class="parameter_description"><p>the registration environment.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.8.6.8.6.10"></a><h4>Returns</h4>
<p> status of the registration.</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-activation-iid-get"></a><h3>bonobo_activation_iid_get ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> *
bonobo_activation_iid_get (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<div class="warning"><p><code class="literal">bonobo_activation_iid_get</code> is deprecated and should not be used in newly-written code.</p></div>
<p>
</p>
<div class="refsect3">
<a name="id-1.8.6.8.7.6"></a><h4>Returns</h4>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-activation-plugin-use"></a><h3>bonobo_activation_plugin_use ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
bonobo_activation_plugin_use (<em class="parameter"><code><span class="type">PortableServer_Servant</span> servant</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> impl_ptr</code></em>);</pre>
<p>You should call this routine to activate a shared library-based
CORBA Object. It will be called by OAF if the component exports
correctly an <a class="link" href="bonobo-activation-Registration.html#BonoboActivationPlugin" title="BonoboActivationPlugin"><code class="literal">BonoboActivationPlugin</code></a> structure named "Bonobo_Plugin_info".</p>
<div class="refsect3">
<a name="id-1.8.6.8.8.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>servant</p></td>
<td class="parameter_description"><p>The servant that was created</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>impl_ptr</p></td>
<td class="parameter_description"><p>The impl_ptr that was passed to the original activation routine</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-activation-plugin-unuse"></a><h3>bonobo_activation_plugin_unuse ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
bonobo_activation_plugin_unuse (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> impl_ptr</code></em>);</pre>
<p>Side effects: May arrange for the shared library that the
implementation is in to be unloaded.</p>
<p>When a shlib plugin for a CORBA object is destroying an
implementation, it should call this function to make sure that the
shared library is unloaded as needed.</p>
<div class="refsect3">
<a name="id-1.8.6.8.9.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>impl_ptr</p></td>
<td class="parameter_description"><p>The impl_ptr that was passed to the activation routine</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="bonobo-activation-Registration.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="Bonobo-RegistrationResult"></a><h3>Bonobo_RegistrationResult</h3>
<pre class="programlisting">typedef struct {
CORBA_unsigned_long _maximum, _length; Bonobo_ServerInfo* _buffer; CORBA_boolean _release; } CORBA_sequence_Bonobo_ServerInfo;
#endif
#if !defined(TC_IMPL_TC_CORBA_sequence_Bonobo_ServerInfo_0)
#define TC_IMPL_TC_CORBA_sequence_Bonobo_ServerInfo_0 'B'
#define TC_IMPL_TC_CORBA_sequence_Bonobo_ServerInfo_1 'o'
#define TC_IMPL_TC_CORBA_sequence_Bonobo_ServerInfo_2 'n'
#define TC_IMPL_TC_CORBA_sequence_Bonobo_ServerInfo_3 'o'
#define TC_IMPL_TC_CORBA_sequence_Bonobo_ServerInfo_4 'b'
#define TC_IMPL_TC_CORBA_sequence_Bonobo_ServerInfo_5 'o'
#define TC_IMPL_TC_CORBA_sequence_Bonobo_ServerInfo_6 '_'
#define TC_IMPL_TC_CORBA_sequence_Bonobo_ServerInfo_7 'A'
#define TC_IMPL_TC_CORBA_sequence_Bonobo_ServerInfo_8 'c'
#define TC_IMPL_TC_CORBA_sequence_Bonobo_ServerInfo_9 't'
#define TC_IMPL_TC_CORBA_sequence_Bonobo_ServerInfo_10 'i'
#define TC_IMPL_TC_CORBA_sequence_Bonobo_ServerInfo_11 'v'
#define TC_IMPL_TC_CORBA_sequence_Bonobo_ServerInfo_12 'a'
#define TC_IMPL_TC_CORBA_sequence_Bonobo_ServerInfo_13 't'
#define TC_IMPL_TC_CORBA_sequence_Bonobo_ServerInfo_14 'i'
#define TC_IMPL_TC_CORBA_sequence_Bonobo_ServerInfo_15 'o'
#define TC_IMPL_TC_CORBA_sequence_Bonobo_ServerInfo_16 'n'
#define TC_IMPL_TC_CORBA_sequence_Bonobo_ServerInfo_17 '_'
#define TC_IMPL_TC_CORBA_sequence_Bonobo_ServerInfo_18 't'
#define TC_IMPL_TC_CORBA_sequence_Bonobo_ServerInfo_19 'y'
#define TC_IMPL_TC_CORBA_sequence_Bonobo_ServerInfo_20 'p'
#define TC_IMPL_TC_CORBA_sequence_Bonobo_ServerInfo_21 'e'
#define TC_IMPL_TC_CORBA_sequence_Bonobo_ServerInfo_22 's'
#ifdef ORBIT_IDL_C_IMODULE_Bonobo_Activation_types
static
#else
extern
#endif
ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_CORBA_sequence_Bonobo_ServerInfo_struct;
#define TC_CORBA_sequence_Bonobo_ServerInfo ((CORBA_TypeCode)&TC_CORBA_sequence_Bonobo_ServerInfo_struct)
#endif
#define CORBA_sequence_Bonobo_ServerInfo__alloc() ((CORBA_sequence_Bonobo_ServerInfo *)ORBit_small_alloc (TC_CORBA_sequence_Bonobo_ServerInfo))
#define CORBA_sequence_Bonobo_ServerInfo__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_Bonobo_ServerInfo,(m),(d))
#define CORBA_sequence_Bonobo_ServerInfo_allocbuf(l) ((Bonobo_ServerInfo*)ORBit_small_allocbuf (TC_CORBA_sequence_Bonobo_ServerInfo, (l)))
#define CORBA_sequence_Bonobo_ServerInfo_allocbuf(l) ((Bonobo_ServerInfo*)ORBit_small_allocbuf (TC_CORBA_sequence_Bonobo_ServerInfo, (l)))
#endif
#if !defined(_Bonobo_ServerInfoList_defined)
#define _Bonobo_ServerInfoList_defined 1
typedef CORBA_sequence_Bonobo_ServerInfo Bonobo_ServerInfoList;
#define Bonobo_ServerInfoList_marshal(x,y,z) CORBA_sequence_Bonobo_ServerInfo_marshal((x),(y),(z))
#define Bonobo_ServerInfoList_demarshal(x,y,z,i) CORBA_sequence_Bonobo_ServerInfo_demarshal((x),(y),(z),(i))
#if !defined(TC_IMPL_TC_Bonobo_ServerInfoList_0)
#define TC_IMPL_TC_Bonobo_ServerInfoList_0 'B'
#define TC_IMPL_TC_Bonobo_ServerInfoList_1 'o'
#define TC_IMPL_TC_Bonobo_ServerInfoList_2 'n'
#define TC_IMPL_TC_Bonobo_ServerInfoList_3 'o'
#define TC_IMPL_TC_Bonobo_ServerInfoList_4 'b'
#define TC_IMPL_TC_Bonobo_ServerInfoList_5 'o'
#define TC_IMPL_TC_Bonobo_ServerInfoList_6 '_'
#define TC_IMPL_TC_Bonobo_ServerInfoList_7 'A'
#define TC_IMPL_TC_Bonobo_ServerInfoList_8 'c'
#define TC_IMPL_TC_Bonobo_ServerInfoList_9 't'
#define TC_IMPL_TC_Bonobo_ServerInfoList_10 'i'
#define TC_IMPL_TC_Bonobo_ServerInfoList_11 'v'
#define TC_IMPL_TC_Bonobo_ServerInfoList_12 'a'
#define TC_IMPL_TC_Bonobo_ServerInfoList_13 't'
#define TC_IMPL_TC_Bonobo_ServerInfoList_14 'i'
#define TC_IMPL_TC_Bonobo_ServerInfoList_15 'o'
#define TC_IMPL_TC_Bonobo_ServerInfoList_16 'n'
#define TC_IMPL_TC_Bonobo_ServerInfoList_17 '_'
#define TC_IMPL_TC_Bonobo_ServerInfoList_18 't'
#define TC_IMPL_TC_Bonobo_ServerInfoList_19 'y'
#define TC_IMPL_TC_Bonobo_ServerInfoList_20 'p'
#define TC_IMPL_TC_Bonobo_ServerInfoList_21 'e'
#define TC_IMPL_TC_Bonobo_ServerInfoList_22 's'
#ifdef ORBIT_IDL_C_IMODULE_Bonobo_Activation_types
static
#else
extern
#endif
ORBIT2_MAYBE_CONST struct CORBA_TypeCode_struct TC_Bonobo_ServerInfoList_struct;
#define TC_Bonobo_ServerInfoList ((CORBA_TypeCode)&TC_Bonobo_ServerInfoList_struct)
#endif
#define Bonobo_ServerInfoList__alloc() ((Bonobo_ServerInfoList *)ORBit_small_alloc (TC_CORBA_sequence_Bonobo_ServerInfo))
#define Bonobo_ServerInfoList__freekids(m,d) ORBit_small_freekids (TC_CORBA_sequence_Bonobo_ServerInfo,(m),(d))
#define Bonobo_ServerInfoList_allocbuf(l) ((Bonobo_ServerInfo*)ORBit_small_allocbuf (TC_CORBA_sequence_Bonobo_ServerInfo, (l)))
#endif
#if !defined(_Bonobo_RegistrationResult_defined)
#define _Bonobo_RegistrationResult_defined 1
typedef enum {
Bonobo_ACTIVATION_REG_SUCCESS,
Bonobo_ACTIVATION_REG_NOT_LISTED,
Bonobo_ACTIVATION_REG_ALREADY_ACTIVE,
Bonobo_ACTIVATION_REG_ERROR
} Bonobo_RegistrationResult;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="BonoboActivationPlugin"></a><h3>BonoboActivationPlugin</h3>
<pre class="programlisting">typedef struct {
const BonoboActivationPluginObject *plugin_object_list;
const char *description;
gpointer dummy[8];
} BonoboActivationPlugin;
</pre>
<p>
Components which want to be activated as
shared libraries must export an BonoboActivationPlugin
structure of name <span class="structname">Bonobo_Plugin_info</span>.
An exmaple of how to use it folows:
</p>
<pre class="programlisting">
static CORBA_Object
hi_shlib_make_object (PortableServer_POA poa,
const char *iid,
gpointer impl_ptr,
CORBA_Environment *ev)
{
CORBA_Object object_ref;
object_ref = impl_Hi__create (poa, ev);
if (object_ref == CORBA_OBJECT_NIL
|| ev->_major != CORBA_NO_EXCEPTION) {
printf ("Server cannot get objref\n");
return CORBA_OBJECT_NIL;
}
bonobo_activation_plugin_use (poa, impl_ptr);
return object_ref;
}
static const BonoboActivationPluginObject hi_plugin_list[] = {
{
"OAFIID:Hi:20000923",
hi_shlib_make_object
},
{
NULL
}
};
const BonoboActivationPlugin Bonobo_Plugin_info = {
hi_plugin_list,
"Hi example"
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="BonoboActivationPluginObject"></a><h3>BonoboActivationPluginObject</h3>
<pre class="programlisting">typedef struct {
const char *iid;
/* This routine should call bonobo_activation_plugin_use(servant, impl_ptr),
* as should all routines which activate CORBA objects
* implemented by this shared library. This needs to be done
* before making any CORBA calls on the object, or
* passing that object around. First thing after servant creation
* always works. :)
*/
CORBA_Object (*activate) (PortableServer_POA poa,
const char *iid,
gpointer impl_ptr, /* This pointer should be stored by the implementation
* to be passed to bonobo_activation_plugin_unuse() in the
* implementation's destruction routine. */
CORBA_Environment *ev);
gpointer dummy[4];
} BonoboActivationPluginObject;
</pre>
<p>
</p>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.20</div>
</body>
</html>
|