Bug 300709 - make add key/group public
make add key/group public
Status: RESOLVED WONTFIX
Product: glib
Classification: Platform
Component: general
2.6.x
Other All
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2005-04-15 08:43 UTC by Emmanuele Bassi (:ebassi)
Modified: 2005-04-28 20:53 UTC (History)
0 users

See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
the proposed patch for public add group/key functions (6.34 KB, patch)
2005-04-15 08:49 UTC, Emmanuele Bassi (:ebassi)
none Details | Diff | Review

Description Emmanuele Bassi (:ebassi) 2005-04-15 08:43:24 UTC
we should make the addition of a key and a group public functions.
Comment 1 Emmanuele Bassi (:ebassi) 2005-04-15 08:49:56 UTC
Created attachment 45281 [details] [review]
the proposed patch for public add group/key functions

In this patch, I've rename the add_key/add_group functions as
real_add_key/real_add_group, and added two public functions:

void g_key_file_add_group (GKeyFile	*key_file,
			   const gchar	*group_name,
			   GError      **err);
void g_key_file_add_key   (GKeyFile	*key_file,
			   const gchar	*group_name,
			   const gchar	*key_name,
			   GError      **err);

I've also added two new erro constants, one for duplicate group and one for
duplicate key.
Comment 2 Matthias Clasen 2005-04-28 20:53:24 UTC
We had those functions in an earlier draft of the keyfile api, but dropped them,
since it seems better to just create groups as needed in the set_key functions.

Note You need to log in before you can comment on or make changes to this bug.