diff options
author | Richard Hughes <richard@hughsie.com> | 2008-03-18 23:48:15 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2008-03-18 23:48:15 +0000 |
commit | 524faf7594066da382ac7cbf4b9af2dba7e0cf82 (patch) | |
tree | f3b6121fb8291fe9856a483e078bae0dc3109f98 /HACKING | |
parent | 13ac62286498ef6fdef4bf429af7274129a3e504 (diff) |
Turn UpdatePackage() into UpdatePackages() - this lets us do some cool things
like only update security updates and also select the updates individually in
pk-update-viewer.
Diffstat (limited to 'HACKING')
-rw-r--r-- | HACKING | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -20,21 +20,14 @@ In the C files use the following convention. The number of spaces and tabs are very important! /* map the roles to policykit rules */ - if (role == PK_ROLE_ENUM_UPDATE_PACKAGE || + if (role == PK_ROLE_ENUM_UPDATE_PACKAGES || role == PK_ROLE_ENUM_UPDATE_SYSTEM) { policy = "org.freedesktop.packagekit.update"; } else if (role == PK_ROLE_ENUM_REMOVE_PACKAGE) { policy = "org.freedesktop.packagekit.remove"; } -and please DO NOT use "!" for a null pointer or boolean - it's too easy to miss -in an audit... - - /* check the search term */ - ret = pk_engine_search_check (search, error); - if (ret == FALSE) { - return FALSE; - } +and please DO NOT use "!" for a null pointer check. Functions are nearly always the same format, gtk-doc is optional: |