This file is indexed.

/usr/share/gtk-doc/html/libgda-4.0/libgda-4.0-Configuration.html is in libgda-4.0-doc 4.2.8-2build1.

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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Configuration</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="GNOME Data Access 4 manual">
<link rel="up" href="init_config.html" title="Initialization and configuration">
<link rel="prev" href="libgda-4.0-Libgda-Initialization.html" title="Libgda initialization">
<link rel="next" href="connection.html" title="Connections &amp; commands">
<meta name="generator" content="GTK-Doc V1.17 (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="libgda-4.0-Libgda-Initialization.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="init_config.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">GNOME Data Access 4 manual</th>
<td><a accesskey="n" href="connection.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libgda-4.0-Configuration.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#libgda-4.0-Configuration.description" class="shortcut">Description</a>
                   | 
                  <a href="#libgda-4.0-Configuration.object-hierarchy" class="shortcut">Object Hierarchy</a>
                   | 
                  <a href="#libgda-4.0-Configuration.properties" class="shortcut">Properties</a>
                   | 
                  <a href="#libgda-4.0-Configuration.signals" class="shortcut">Signals</a>
</td></tr>
</table>
<div class="refentry">
<a name="libgda-4.0-Configuration"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libgda-4.0-Configuration.top_of_page"></a>Configuration</span></h2>
<p>Configuration — Access/Management of libgda configuration</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="libgda-4.0-Configuration.synopsis"></a><h2>Synopsis</h2>
<a name="GdaConfig"></a><pre class="synopsis">                    <a class="link" href="libgda-4.0-Configuration.html#GdaConfig-struct" title="GdaConfig">GdaConfig</a>;

struct              <a class="link" href="libgda-4.0-Configuration.html#GdaDsnInfo" title="struct GdaDsnInfo">GdaDsnInfo</a>;
<a class="link" href="libgda-4.0-Configuration.html#GdaDsnInfo" title="struct GdaDsnInfo"><span class="returnvalue">GdaDsnInfo</span></a> *        <a class="link" href="libgda-4.0-Configuration.html#gda-config-get-dsn-info" title="gda_config_get_dsn_info ()">gda_config_get_dsn_info</a>             (<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> *dsn_name</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="libgda-4.0-Configuration.html#gda-config-define-dsn" title="gda_config_define_dsn ()">gda_config_define_dsn</a>               (<em class="parameter"><code>const <a class="link" href="libgda-4.0-Configuration.html#GdaDsnInfo" title="struct GdaDsnInfo"><span class="type">GdaDsnInfo</span></a> *info</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="libgda-4.0-Configuration.html#gda-config-remove-dsn" title="gda_config_remove_dsn ()">gda_config_remove_dsn</a>               (<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> *dsn_name</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="libgda-4.0-Configuration.html#gda-config-dsn-needs-authentication" title="gda_config_dsn_needs_authentication ()">gda_config_dsn_needs_authentication</a> (<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> *dsn_name</code></em>);
<a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="returnvalue">GdaDataModel</span></a> *      <a class="link" href="libgda-4.0-Configuration.html#gda-config-list-dsn" title="gda_config_list_dsn ()">gda_config_list_dsn</a>                 (<em class="parameter"><code><span class="type">void</span></code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="libgda-4.0-Configuration.html#gda-config-get-nb-dsn" title="gda_config_get_nb_dsn ()">gda_config_get_nb_dsn</a>               (<em class="parameter"><code><span class="type">void</span></code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="libgda-4.0-Configuration.html#gda-config-get-dsn-info-index" title="gda_config_get_dsn_info_index ()">gda_config_get_dsn_info_index</a>       (<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> *dsn_name</code></em>);
<a class="link" href="libgda-4.0-Configuration.html#GdaDsnInfo" title="struct GdaDsnInfo"><span class="returnvalue">GdaDsnInfo</span></a> *        <a class="link" href="libgda-4.0-Configuration.html#gda-config-get-dsn-info-at-index" title="gda_config_get_dsn_info_at_index ()">gda_config_get_dsn_info_at_index</a>    (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> index</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="libgda-4.0-Configuration.html#gda-config-can-modify-system-config" title="gda_config_can_modify_system_config ()">gda_config_can_modify_system_config</a> (<em class="parameter"><code><span class="type">void</span></code></em>);

struct              <a class="link" href="libgda-4.0-Configuration.html#GdaProviderInfo" title="struct GdaProviderInfo">GdaProviderInfo</a>;
<a class="link" href="libgda-4.0-Configuration.html#GdaProviderInfo" title="struct GdaProviderInfo"><span class="returnvalue">GdaProviderInfo</span></a> *   <a class="link" href="libgda-4.0-Configuration.html#gda-config-get-provider-info" title="gda_config_get_provider_info ()">gda_config_get_provider_info</a>        (<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> *provider_name</code></em>);
<a class="link" href="GdaServerProvider.html" title="GdaServerProvider"><span class="returnvalue">GdaServerProvider</span></a> * <a class="link" href="libgda-4.0-Configuration.html#gda-config-get-provider" title="gda_config_get_provider ()">gda_config_get_provider</a>             (<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> *provider_name</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="returnvalue">GdaDataModel</span></a> *      <a class="link" href="libgda-4.0-Configuration.html#gda-config-list-providers" title="gda_config_list_providers ()">gda_config_list_providers</a>           (<em class="parameter"><code><span class="type">void</span></code></em>);

<a class="link" href="libgda-4.0-Configuration.html#GdaConfig"><span class="returnvalue">GdaConfig</span></a> *          <a class="link" href="libgda-4.0-Configuration.html#gda-config-get" title="gda_config_get ()">gda_config_get</a>                     (<em class="parameter"><code><span class="type">void</span></code></em>);
</pre>
</div>
<div class="refsect1">
<a name="libgda-4.0-Configuration.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
   +----GdaConfig
</pre>
</div>
<div class="refsect1">
<a name="libgda-4.0-Configuration.properties"></a><h2>Properties</h2>
<pre class="synopsis">
  "<a class="link" href="libgda-4.0-Configuration.html#GdaConfig--system-filename" title='The "system-filename" property'>system-filename</a>"          <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write
  "<a class="link" href="libgda-4.0-Configuration.html#GdaConfig--user-filename" title='The "user-filename" property'>user-filename</a>"            <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write
</pre>
</div>
<div class="refsect1">
<a name="libgda-4.0-Configuration.signals"></a><h2>Signals</h2>
<pre class="synopsis">
  "<a class="link" href="libgda-4.0-Configuration.html#GdaConfig-dsn-added" title='The "dsn-added" signal'>dsn-added</a>"                                      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a>
  "<a class="link" href="libgda-4.0-Configuration.html#GdaConfig-dsn-changed" title='The "dsn-changed" signal'>dsn-changed</a>"                                    : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a>
  "<a class="link" href="libgda-4.0-Configuration.html#GdaConfig-dsn-removed" title='The "dsn-removed" signal'>dsn-removed</a>"                                    : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a>
  "<a class="link" href="libgda-4.0-Configuration.html#GdaConfig-dsn-to-be-removed" title='The "dsn-to-be-removed" signal'>dsn-to-be-removed</a>"                              : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a>
</pre>
</div>
<div class="refsect1">
<a name="libgda-4.0-Configuration.description"></a><h2>Description</h2>
<p>
  The functions in this section allow applications an easy access to libgda's
  configuration (the list of data sources and database providers).
</p>
<p>
  As soon as a <a class="link" href="libgda-4.0-Configuration.html#GdaConfig">GdaConfig</a> is needed (for example when requesting information
  about a data source or about a server provider), a single instance object is created,
  and no other will need to be created. A pointer to this object can be obtained with
  <a class="link" href="libgda-4.0-Configuration.html#gda-config-get" title="gda_config_get ()"><a class="link" href="libgda-4.0-Configuration.html#gda-config-get" title="gda_config_get ()"><code class="function">gda_config_get()</code></a></a>. Of course one can (right after having called
  <a class="link" href="libgda-4.0-Libgda-Initialization.html#gda-init" title="gda_init ()"><a class="link" href="libgda-4.0-Libgda-Initialization.html#gda-init" title="gda_init ()"><code class="function">gda_init()</code></a></a>) force the creation of a GdaConfig object with some
  specific properties set, using a simple call like:
  </p>
<pre class="programlisting">
g_object_new (GDA_TYPE_CONFIG, "user-filename", "my_file", NULL);
  </pre>
<p>
  Please note that after that call, the caller has a reference to the newly created object, and should technically
  call <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><GTKDOCLINK HREF="g-object-unref"><code class="function">g_object_unref()</code></a></GTKDOCLINK> when finished using it. It is safe to do this
  but also pointless since that object should not be destroyed (as no other will be created) as <span class="application">Libgda</span> also
  keeps a reference for itself.
</p>
<p>
  Data sources are defined in a per-user configuration file which is by default <code class="filename">${HOME}/.libgda/config</code> and
  in a system wide configuration file which is by default <code class="filename">${prefix}/etc/libgda-4.0/config</code>. Those
  filenames can be modified by setting the user-file and
  system-file properties for the single <a class="link" href="libgda-4.0-Configuration.html#GdaConfig">GdaConfig</a>
  instance. Note that setting either of these properties to <code class="literal">NULL</code> will disable using the corresponding
  configuration file (DSN will exist only in memory and their definition will be lost when the application finishes).
</p>
<p>
  The <a class="link" href="libgda-4.0-Configuration.html#GdaConfig"><span class="type">GdaConfig</span></a> object implements its own locking mechanism so it is thread-safe.
</p>
<p>
  Note about localization: when the <a class="link" href="libgda-4.0-Configuration.html#GdaConfig"><span class="type">GdaConfig</span></a> loads configuration files, it filters the
  contents based on the current locale, so for example if your current locale is "de" then
  all the loaded strings (for the ones which are translated) will be in the German language.
  Changing the locale afterwards will have no effect on the <a class="link" href="libgda-4.0-Configuration.html#GdaConfig"><span class="type">GdaConfig</span></a> and the already loaded
  configuration.
  The consequence is that you should first call <a href="http://library.gnome.org/devel/glib/unstable/glib-running.html#setlocale"><code class="function">setlocale()</code></a> youself in your code before using
  a <a class="link" href="libgda-4.0-Configuration.html#GdaConfig"><span class="type">GdaConfig</span></a> object. As a side note you should also call <a href="http://library.gnome.org/devel/gtk3/gtk-General.html#gtk-init"><code class="function">gtk_init()</code></a> before <a class="link" href="libgda-4.0-LibgdaUI-Initialization.html#gdaui-init" title="gdaui_init ()"><code class="function">gdaui_init()</code></a> because
  <a href="http://library.gnome.org/devel/gtk3/gtk-General.html#gtk-init"><code class="function">gtk_init()</code></a> calls <a href="http://library.gnome.org/devel/glib/unstable/glib-running.html#setlocale"><code class="function">setlocale()</code></a>.
</p>
</div>
<div class="refsect1">
<a name="libgda-4.0-Configuration.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GdaConfig-struct"></a><h3>GdaConfig</h3>
<pre class="programlisting">typedef struct _GdaConfig GdaConfig;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaDsnInfo"></a><h3>struct GdaDsnInfo</h3>
<pre class="programlisting">struct GdaDsnInfo {
        gchar    *name;
        gchar    *provider;
        gchar    *description;
        gchar    *cnc_string;
        gchar    *auth_string;
        gboolean  is_system;
};
</pre>
<p>
This structure defines the properties of a named data source (DSN).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GdaDsnInfo.name"></a>name</code></em>;</span></p></td>
<td>the (unique) name of the DSN (plain text, not RFC 1738 encoded)</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GdaDsnInfo.provider"></a>provider</code></em>;</span></p></td>
<td>the ID of the database provider to be used (plain text, not RFC 1738 encoded)</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GdaDsnInfo.description"></a>description</code></em>;</span></p></td>
<td>a descriptive string (plain text, not RFC 1738 encoded), can be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GdaDsnInfo.cnc-string"></a>cnc_string</code></em>;</span></p></td>
<td>the connection string, a semi-colon separated &lt;key&gt;=&lt;value&gt; list where &lt;key&gt; and &lt;value&gt; are RFC 1738 encoded</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GdaDsnInfo.auth-string"></a>auth_string</code></em>;</span></p></td>
<td>the authentication string, a semi-colon separated &lt;key&gt;=&lt;value&gt; list where &lt;key&gt; and &lt;value&gt; are RFC 1738 encoded. Can be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> <em class="structfield"><code><a name="GdaDsnInfo.is-system"></a>is_system</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> if the DSN is a system wide defined data source</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-config-get-dsn-info"></a><h3>gda_config_get_dsn_info ()</h3>
<pre class="programlisting"><a class="link" href="libgda-4.0-Configuration.html#GdaDsnInfo" title="struct GdaDsnInfo"><span class="returnvalue">GdaDsnInfo</span></a> *        gda_config_get_dsn_info             (<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> *dsn_name</code></em>);</pre>
<p>
Get information about the DSN named <em class="parameter"><code>dsn_name</code></em>. 
</p>
<p>
<em class="parameter"><code>dsn_name</code></em>'s format is "[&lt;username&gt;[:&lt;password&gt;]@]&lt;DSN&gt;" (if &lt;username&gt;
and optionally &lt;password&gt; are provided, they are ignored). Also see the <a class="link" href="libgda-4.0-Utility-functions.html#gda-dsn-split" title="gda_dsn_split ()"><code class="function">gda_dsn_split()</code></a> utility
function.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dsn_name</code></em> :</span></p></td>
<td>the name of the DSN to look for</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a pointer to read-only <a class="link" href="libgda-4.0-Configuration.html#GdaDsnInfo" title="struct GdaDsnInfo"><span class="type">GdaDsnInfo</span></a> structure, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if not found. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-config-define-dsn"></a><h3>gda_config_define_dsn ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gda_config_define_dsn               (<em class="parameter"><code>const <a class="link" href="libgda-4.0-Configuration.html#GdaDsnInfo" title="struct GdaDsnInfo"><span class="type">GdaDsnInfo</span></a> *info</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Add or update a DSN from the definition in <em class="parameter"><code>info</code></em>.
</p>
<p>
This method may fail with a <code class="literal">GDA_CONFIG_ERROR</code> domain error (see the <span class="type">GdaConfigError</span> error codes).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>info</code></em> :</span></p></td>
<td>a pointer to a filled GdaDsnInfo structure</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a place to store errors, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE if no error occurred</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-config-remove-dsn"></a><h3>gda_config_remove_dsn ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gda_config_remove_dsn               (<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> *dsn_name</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Remove the DSN named <em class="parameter"><code>dsn_name</code></em>.
</p>
<p>
This method may fail with a <code class="literal">GDA_CONFIG_ERROR</code> domain error (see the <span class="type">GdaConfigError</span> error codes).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dsn_name</code></em> :</span></p></td>
<td>the name of the DSN to remove</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a place to store errors, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE if no error occurred</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-config-dsn-needs-authentication"></a><h3>gda_config_dsn_needs_authentication ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gda_config_dsn_needs_authentication (<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> *dsn_name</code></em>);</pre>
<p>
Tells if the data source identified as <em class="parameter"><code>dsn_name</code></em> needs any authentication. If a &lt;username&gt;
and optionally a &lt;password&gt; are specified, they are ignored.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dsn_name</code></em> :</span></p></td>
<td>the name of a DSN, in the "[&lt;username&gt;[:&lt;password&gt;]@]&lt;DSN&gt;" format</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE if an authentication is needed</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-config-list-dsn"></a><h3>gda_config_list_dsn ()</h3>
<pre class="programlisting"><a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="returnvalue">GdaDataModel</span></a> *      gda_config_list_dsn                 (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Get a <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a> representing all the configured DSN, and keeping itself up to date with
the changes in the declared DSN.
</p>
<p>
The returned data model is composed of the following columns:
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem"><p>DSN name</p></li>
<li class="listitem"><p>Provider name</p></li>
<li class="listitem"><p>Description</p></li>
<li class="listitem"><p>Connection string</p></li>
<li class="listitem"><p>Username if it exists</p></li>
</ul></div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a>. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-config-get-nb-dsn"></a><h3>gda_config_get_nb_dsn ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gda_config_get_nb_dsn               (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Get the number of defined DSN
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the number of defined DSN</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-config-get-dsn-info-index"></a><h3>gda_config_get_dsn_info_index ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gda_config_get_dsn_info_index       (<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> *dsn_name</code></em>);</pre>
<p>
Get the index (starting at 0) of the DSN named <em class="parameter"><code>dsn_name</code></em>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dsn_name</code></em> :</span></p></td>
<td>a DSN</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the index or -1 if not found</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-config-get-dsn-info-at-index"></a><h3>gda_config_get_dsn_info_at_index ()</h3>
<pre class="programlisting"><a class="link" href="libgda-4.0-Configuration.html#GdaDsnInfo" title="struct GdaDsnInfo"><span class="returnvalue">GdaDsnInfo</span></a> *        gda_config_get_dsn_info_at_index    (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> index</code></em>);</pre>
<p>
Get a pointer to a read-only <a class="link" href="libgda-4.0-Configuration.html#GdaDsnInfo" title="struct GdaDsnInfo"><span class="type">GdaDsnInfo</span></a> at the <em class="parameter"><code>index</code></em> position
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>index</code></em> :</span></p></td>
<td>an index</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the pointer or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no DSN exists at position <em class="parameter"><code>index</code></em>. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-config-can-modify-system-config"></a><h3>gda_config_can_modify_system_config ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gda_config_can_modify_system_config (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Tells if the global (system) configuration can be modified (considering
system permissions and settings)
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE if system-wide configuration can be modified</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GdaProviderInfo"></a><h3>struct GdaProviderInfo</h3>
<pre class="programlisting">struct GdaProviderInfo {
        gchar             *id;
        gchar             *location;
        gchar             *description;
        GdaSet            *dsn_params;  /* Specs to create a DSN */
	GdaSet            *auth_params; /* Specs to authenticate a client */
};
</pre>
<p>
This structure holds the information associated to a database provider as discovered by Libgda.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GdaProviderInfo.id"></a>id</code></em>;</span></p></td>
<td>the unique identifier of the database provider</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GdaProviderInfo.location"></a>location</code></em>;</span></p></td>
<td>the complete path to the shared library implementing the database provider</td>
</tr>
<tr>
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GdaProviderInfo.description"></a>description</code></em>;</span></p></td>
<td>provider's description</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> *<em class="structfield"><code><a name="GdaProviderInfo.dsn-params"></a>dsn_params</code></em>;</span></p></td>
<td>a <a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> containing all the parameters which can/must be specified when opening a connection or defining a named data source (DSN)</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> *<em class="structfield"><code><a name="GdaProviderInfo.auth-params"></a>auth_params</code></em>;</span></p></td>
<td>a <a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> containing all the authentication parameters</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-config-get-provider-info"></a><h3>gda_config_get_provider_info ()</h3>
<pre class="programlisting"><a class="link" href="libgda-4.0-Configuration.html#GdaProviderInfo" title="struct GdaProviderInfo"><span class="returnvalue">GdaProviderInfo</span></a> *   gda_config_get_provider_info        (<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> *provider_name</code></em>);</pre>
<p>
Get some information about the a database provider (adapter) named
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>provider_name</code></em> :</span></p></td>
<td>a database provider</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a pointer to read-only <a class="link" href="libgda-4.0-Configuration.html#GdaProviderInfo" title="struct GdaProviderInfo"><span class="type">GdaProviderInfo</span></a> structure, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if not found. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-config-get-provider"></a><h3>gda_config_get_provider ()</h3>
<pre class="programlisting"><a class="link" href="GdaServerProvider.html" title="GdaServerProvider"><span class="returnvalue">GdaServerProvider</span></a> * gda_config_get_provider             (<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> *provider_name</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Get a pointer to the session-wide <a class="link" href="GdaServerProvider.html" title="GdaServerProvider"><span class="type">GdaServerProvider</span></a> for the
provider named <em class="parameter"><code>provider_name</code></em>. The caller must not call <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> on the
returned object.
</p>
<p>
This method may fail with a <code class="literal">GDA_CONFIG_ERROR</code> domain error (see the <span class="type">GdaConfigError</span> error codes).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>provider_name</code></em> :</span></p></td>
<td>a database provider</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a place to store errors, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a pointer to the <a class="link" href="GdaServerProvider.html" title="GdaServerProvider"><span class="type">GdaServerProvider</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurred. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-config-list-providers"></a><h3>gda_config_list_providers ()</h3>
<pre class="programlisting"><a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="returnvalue">GdaDataModel</span></a> *      gda_config_list_providers           (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Get a <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a> representing all the installed database providers.
</p>
<p>
The returned data model is composed of the following columns:
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem"><p>Provider name</p></li>
<li class="listitem"><p>Description</p></li>
<li class="listitem"><p>DSN parameters</p></li>
<li class="listitem"><p>Authentication parameters</p></li>
<li class="listitem"><p>File name of the plugin</p></li>
</ul></div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a>. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-config-get"></a><h3>gda_config_get ()</h3>
<pre class="programlisting"><a class="link" href="libgda-4.0-Configuration.html#GdaConfig"><span class="returnvalue">GdaConfig</span></a> *          gda_config_get                     (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Get a pointer to the global (unique) <a class="link" href="libgda-4.0-Configuration.html#GdaConfig"><span class="type">GdaConfig</span></a> object. This functions increments
the reference count of the object, so you need to call <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> on it once finished.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a non <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> pointer to the unique <a class="link" href="libgda-4.0-Configuration.html#GdaConfig"><span class="type">GdaConfig</span></a>. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
</td>
</tr></tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="libgda-4.0-Configuration.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GdaConfig--system-filename"></a><h3>The <code class="literal">"system-filename"</code> property</h3>
<pre class="programlisting">  "system-filename"          <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write</pre>
<p>
File to use for system-wide DSN list. When changed, the whole list of DSN will be reloaded.
</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaConfig--user-filename"></a><h3>The <code class="literal">"user-filename"</code> property</h3>
<pre class="programlisting">  "user-filename"            <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write</pre>
<p>
File to use for per-user DSN list. When changed, the whole list of DSN will be reloaded.
</p>
<p>Default value: NULL</p>
</div>
</div>
<div class="refsect1">
<a name="libgda-4.0-Configuration.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="GdaConfig-dsn-added"></a><h3>The <code class="literal">"dsn-added"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="libgda-4.0-Configuration.html#GdaConfig"><span class="type">GdaConfig</span></a> *conf,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>   new_dsn,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>   user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a></pre>
<p>
Gets emitted whenever a new DSN has been defined
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>conf</code></em> :</span></p></td>
<td>the <a class="link" href="libgda-4.0-Configuration.html#GdaConfig"><span class="type">GdaConfig</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>new_dsn</code></em> :</span></p></td>
<td>a <a class="link" href="libgda-4.0-Configuration.html#GdaDsnInfo" title="struct GdaDsnInfo"><span class="type">GdaDsnInfo</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GdaConfig-dsn-changed"></a><h3>The <code class="literal">"dsn-changed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="libgda-4.0-Configuration.html#GdaConfig"><span class="type">GdaConfig</span></a> *conf,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>   dsn,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>   user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a></pre>
<p>
Gets emitted whenever a DSN's definition has been changed
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>conf</code></em> :</span></p></td>
<td>the <a class="link" href="libgda-4.0-Configuration.html#GdaConfig"><span class="type">GdaConfig</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>dsn</code></em> :</span></p></td>
<td>a <a class="link" href="libgda-4.0-Configuration.html#GdaDsnInfo" title="struct GdaDsnInfo"><span class="type">GdaDsnInfo</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GdaConfig-dsn-removed"></a><h3>The <code class="literal">"dsn-removed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="libgda-4.0-Configuration.html#GdaConfig"><span class="type">GdaConfig</span></a> *conf,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>   old_dsn,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>   user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a></pre>
<p>
Gets emitted whenever a DSN has been removed
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>conf</code></em> :</span></p></td>
<td>the <a class="link" href="libgda-4.0-Configuration.html#GdaConfig"><span class="type">GdaConfig</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>old_dsn</code></em> :</span></p></td>
<td>a <a class="link" href="libgda-4.0-Configuration.html#GdaDsnInfo" title="struct GdaDsnInfo"><span class="type">GdaDsnInfo</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GdaConfig-dsn-to-be-removed"></a><h3>The <code class="literal">"dsn-to-be-removed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="libgda-4.0-Configuration.html#GdaConfig"><span class="type">GdaConfig</span></a> *conf,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>   old_dsn,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>   user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a></pre>
<p>
Gets emitted whenever a DSN is about to be removed
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>conf</code></em> :</span></p></td>
<td>the <a class="link" href="libgda-4.0-Configuration.html#GdaConfig"><span class="type">GdaConfig</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>old_dsn</code></em> :</span></p></td>
<td>a <a class="link" href="libgda-4.0-Configuration.html#GdaDsnInfo" title="struct GdaDsnInfo"><span class="type">GdaDsnInfo</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.17</div>
</body>
</html>