
Table of Contents
Chapter 7: LDAP Directory Services
Running the Server.............................................................................................................................179
Accessing LDAP from C....................................................................................................................180
Initialize the LDAP Library.........................................................................................................181
Bind to the LDAP Server.............................................................................................................181
LDAP Error Handling..................................................................................................................182
A First LDAP Client Program......................................................................................................183
Searching......................................................................................................................................183
Changing the Data...............................................................................................................................192
Adding a New Entry.....................................................................................................................192
Modifying an Entry......................................................................................................................195
Deleting an Entry..........................................................................................................................197
The Application..................................................................................................................................198
Resources............................................................................................................................................198
Summary.............................................................................................................................................198
Chapter 8: GUI programming with GNOME/GTK+................................................................................200
Overview.............................................................................................................................................200
The GTK+/GNOME libraries.............................................................................................................200
glib.................................................................................................................................................201
GTK+............................................................................................................................................201
GDK..............................................................................................................................................201
Imlib..............................................................................................................................................201
ORBit.............................................................................................................................................201
libGnorba.......................................................................................................................................201
glib......................................................................................................................................................202
Types............................................................................................................................................202
Macros..........................................................................................................................................203
String functions............................................................................................................................205
Memory Allocation......................................................................................................................206
Lists..............................................................................................................................................207
GTK+..................................................................................................................................................209
Widgets.........................................................................................................................................209
gtk_init and gtk_main...................................................................................................................214
Example GTK+ Application........................................................................................................214
GNOME Basics..................................................................................................................................215
gnome_init.....................................................................................................................................216
GnomeApp....................................................................................................................................216
Menus and Toolbars.....................................................................................................................216
Dialogs..........................................................................................................................................219
Creating a GnomeDialog...............................................................................................................220
Example GNOME Application....................................................................................................225
The GNOME Source Tree..................................................................................................................227
configure.in....................................................................................................................................228
Makefile.am...................................................................................................................................229
Configuration Saving...................................................................................................................230
Storing data....................................................................................................................................230
Reading the Stored Data................................................................................................................231
Professional LINUX Programming
iv
评论3