From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RBYXv-0003e5-Hg for garchives@archives.gentoo.org; Wed, 05 Oct 2011 20:58:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8FFF521C22B; Wed, 5 Oct 2011 20:56:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 5F4D721C20B for ; Wed, 5 Oct 2011 20:56:54 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 140A21B4044 for ; Wed, 5 Oct 2011 20:56:54 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 5F8E280056 for ; Wed, 5 Oct 2011 20:56:53 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <5ee230352df6d06cdba6f48da3d83a608847785c.dol-sen@gentoo> Subject: [gentoo-commits] proj/layman:master commit in: src/ X-VCS-Repository: proj/layman X-VCS-Files: src/laymanapi.c X-VCS-Directories: src/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 5ee230352df6d06cdba6f48da3d83a608847785c Date: Wed, 5 Oct 2011 20:56:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 6ab158245fc5cbc25d3263da57afc31c commit: 5ee230352df6d06cdba6f48da3d83a608847785c Author: Detlev Casanova gmail com> AuthorDate: Fri Jul 16 20:52:58 2010 +0000 Commit: Brian Dolbec gmail com> CommitDate: Fri Jul 16 20:52:58 2010 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/layman.git;a=3D= commit;h=3D5ee23035 Add comment to newly added functions --- src/laymanapi.c | 23 ++++++++++++++++++++++- 1 files changed, 22 insertions(+), 1 deletions(-) diff --git a/src/laymanapi.c b/src/laymanapi.c index 9048921..8458c38 100644 --- a/src/laymanapi.c +++ b/src/laymanapi.c @@ -389,13 +389,19 @@ int _laymanAPIGetAllInfos(LaymanAPI* l, StringList*= overlays, OverlayInfo *resul =20 k++; } - +=09 + //The returned value is not necessary anymore. Py_DECREF(obj); =20 //Return the number of structures that have been filled. return k; } =20 +/* + * Adds an overlay to layman + * + * Return True if it succeeded, False if not + */ int laymanAPIAddRepo(LaymanAPI* l, const char *repo) { if (!l || !l->object || !repo) @@ -416,6 +422,11 @@ int laymanAPIAddRepo(LaymanAPI* l, const char *repo) return ret; } =20 +/* + * Adds a list of overlays to layman + * + * Return True if it succeeded, False if not + */ int laymanAPIAddRepos(LaymanAPI* l, StringList *repos) { if (!l || !l->object || !repos) @@ -440,6 +451,11 @@ int laymanAPIAddRepos(LaymanAPI* l, StringList *repo= s) return ret; } =20 +/* + * Deletes an overlay from layman + * + * Return True if it succeeded, False if not + */ int laymanAPIDeleteRepo(LaymanAPI* l, const char *repo) { if (!l || !l->object || !repo) @@ -460,6 +476,11 @@ int laymanAPIDeleteRepo(LaymanAPI* l, const char *re= po) return ret; } =20 +/* + * Deletes a list of overlays from layman + * + * Return True if it succeeded, False if not + */ int laymanAPIDeleteRepos(LaymanAPI* l, StringList *repos) { if (!l || !l->object || !repos)