From owner-p4-projects@FreeBSD.ORG Thu Jul 9 03:51:32 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 7FC2810656BE; Thu, 9 Jul 2009 03:51:32 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E92E10656BB for ; Thu, 9 Jul 2009 03:51:32 +0000 (UTC) (envelope-from dforsyth@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 129CA8FC1D for ; Thu, 9 Jul 2009 03:51:32 +0000 (UTC) (envelope-from dforsyth@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n693pVmf055430 for ; Thu, 9 Jul 2009 03:51:31 GMT (envelope-from dforsyth@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n693pVLQ055428 for perforce@freebsd.org; Thu, 9 Jul 2009 03:51:31 GMT (envelope-from dforsyth@FreeBSD.org) Date: Thu, 9 Jul 2009 03:51:31 GMT Message-Id: <200907090351.n693pVLQ055428@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to dforsyth@FreeBSD.org using -f From: David Forsythe To: Perforce Change Reviews Cc: Subject: PERFORCE change 165843 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jul 2009 03:51:33 -0000 http://perforce.freebsd.org/chv.cgi?CH=165843 Change 165843 by dforsyth@squirrel on 2009/07/09 03:51:28 fix some headers Affected files ... .. //depot/projects/soc2009/dforsyth_libpkg/libpkg/pkg_conflict.c#2 edit .. //depot/projects/soc2009/dforsyth_libpkg/libpkg/pkg_conflict.h#2 edit .. //depot/projects/soc2009/dforsyth_libpkg/libpkg/pkg_depend.c#2 edit .. //depot/projects/soc2009/dforsyth_libpkg/libpkg/pkg_depend.h#2 edit Differences ... ==== //depot/projects/soc2009/dforsyth_libpkg/libpkg/pkg_conflict.c#2 (text+ko) ==== @@ -2,26 +2,30 @@ #include "stdlib.h" #include "string.h" -#include - #include "pkg_util.h" -#include "pkg_cfl.h" +#include "pkg_conflict.h" #include "pkg.h" /* Conflicts. */ -struct pkg_cfl * -pkg_cfl_new() +struct pkg_conflict * +pkg_conflict_new() { - struct pkg_cfl *pc; + struct pkg_conflict *pc; pc = calloc(1, sizeof(*pc)); return (pc); } +void +pkg_conflict_delete(struct pkg_conflict *pc) +{ + return; +} + int -pkg_cfl_set_name(struct pkg_cfl *pc, const char *name) +pkg_conflict_set_name(struct pkg_conflict *pc, const char *name) { if (pc == NULL) arg_rage_quit(__func__, "Not a valid conflict.", RAGE_AT_LIBPKG); @@ -33,7 +37,7 @@ } const char * -pkg_cfl_name(struct pkg_cfl *pc) +pkg_conflict_name(struct pkg_conflict *pc) { if (pc == NULL) arg_rage_quit(__func__, "Not a valid conflict.", RAGE_AT_LIBPKG); ==== //depot/projects/soc2009/dforsyth_libpkg/libpkg/pkg_conflict.h#2 (text+ko) ==== @@ -1,17 +1,17 @@ -#ifndef __PKG_CFL_H__ -#define __PKG_CFL_H__ +#ifndef __PKG_CONFLICT_H__ +#define __PKG_CONFLICT_H__ -struct pkg_cfl { +struct pkg_conflict { char *name; int version; }; -#if 0 -struct pkg_cfl *pkg_cfl_new(void); +struct pkg_conflict *pkg_conflict_new(void); + +void pkg_conflict_delete(struct pkg_conflict *pc); -int pkg_cfl_set_name(struct pkg_cfl *pc, const char *name); +int pkg_conflict_set_name(struct pkg_conflict *pc, const char *name); -const char *pkg_cfl_name(struct pkg_cfl *pc); -#endif +const char *pkg_conflict_name(struct pkg_conflict *pc); #endif ==== //depot/projects/soc2009/dforsyth_libpkg/libpkg/pkg_depend.c#2 (text+ko) ==== @@ -2,21 +2,27 @@ #include #include -#include "pkg_dep.h" +#include "pkg_depend.h" #include "pkg.h" -struct pkg_dep * -pkg_dep_new() +struct pkg_depend * +pkg_depend_new() { - struct pkg_dep *pd; + struct pkg_depend *pd; pd = calloc(1, sizeof(*pd)); return (pd); } -struct pkg_dep * -pkg_dep_set_name(struct pkg_dep *pd, const char *name) +void +pkg_depend_delete(struct pkg_depend *pd) +{ + return; +} + +struct pkg_depend * +pkg_depend_set_name(struct pkg_depend *pd, const char *name) { if (pd == NULL) return (NULL); @@ -27,8 +33,8 @@ return (pd); } -struct pkg_dep * -pkg_dep_set_origin(struct pkg_dep *pd, const char *origin) +struct pkg_depend * +pkg_depend_set_origin(struct pkg_depend *pd, const char *origin) { if (pd == NULL) return (NULL); @@ -40,7 +46,7 @@ } const char * -pkg_dep_name(struct pkg_dep *pd) +pkg_depend_name(struct pkg_depend *pd) { if (pd == NULL) return (NULL); @@ -49,7 +55,7 @@ } const char * -pkg_dep_origin(struct pkg_dep *pd) +pkg_depend_origin(struct pkg_depend *pd) { if (pd == NULL) return (NULL); ==== //depot/projects/soc2009/dforsyth_libpkg/libpkg/pkg_depend.h#2 (text+ko) ==== @@ -1,27 +1,25 @@ -#ifndef __PKG_DEP_H__ -#define __PKG_DEP_H__ +#ifndef __PKG_DEPEND_H__ +#define __PKG_DEPEND_H__ /* TODO: Clean up pkg_plist.c so I can get this into pkg_dep.c. */ -#include - -struct pkg_dep { +struct pkg_depend { char *name; char *origin; int version; }; -#if 0 -struct pkg_dep *pkg_dep_new(void); +struct pkg_depend *pkg_depend_new(void); + +void pkg_depend_delete(struct pkg_depend *pd); -struct pkg_dep *pkg_dep_set_name(struct pkg_dep *pd, const char *name); +struct pkg_depend *pkg_depend_set_name(struct pkg_depend *pd, const char *name); -struct pkg_dep *pkg_dep_set_origin(struct pkg_dep *pd, const char *origin); +struct pkg_depend *pkg_depend_set_origin(struct pkg_depend *pd, const char *origin); -const char *pkg_dep_name(struct pkg_dep *pd); +const char *pkg_depend_name(struct pkg_depend *pd); -const char *pkg_dep_origin(struct pkg_dep *pd); -#endif +const char *pkg_depend_origin(struct pkg_depend *pd); #endif