PERFORCE change 131829 for review
Garrett Cooper
gcooper at FreeBSD.org
Thu Dec 27 17:02:18 PST 2007
http://perforce.freebsd.org/chv.cgi?CH=131829
Change 131829 by gcooper at shiina-ibook on 2007/12/28 01:01:31
Add perform(..) stub.
Affected files ...
.. //depot/projects/soc2007/revised_fbsd_pkgtools/pkg_revised/v2/pkgman/pkg_action.c#2 edit
Differences ...
==== //depot/projects/soc2007/revised_fbsd_pkgtools/pkg_revised/v2/pkgman/pkg_action.c#2 (text+ko) ====
@@ -6,7 +6,7 @@
* @return NULL on bad action_type.
*/
pkg_action
-init_action(int action_type, freebsd_pkg *fpkg)
+init_action(int action_type, struct freebsd_package *fpkg)
{
switch (action_type) {
@@ -37,3 +37,14 @@
}
return NULL;
+
+}
+
+int
+perform(struct pkg_action *action, struct freebsd_package *fpkg)
+{
+ if (action != NULL) {
+ return action->perform(fpkg);
+ }
+ return -1;
+}
More information about the p4-projects
mailing list