Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

factory_library.c

Go to the documentation of this file.
00001 /*
00002  * factory_library.c
00003  *
00004  * Copyright (c) 2003 The University of Utah and the Flux Group.
00005  * All rights reserved.
00006  *
00007  * This file is licensed under the terms of the GNU Public License.  
00008  * See the file "license.terms" for restrictions on redistribution 
00009  * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
00010  */
00011 
00012 /**
00013  * @file factory_library.c
00014  *
00015  * Implementation of the functions in factory_library.h.
00016  */
00017 
00018 #include "config.h"
00019 
00020 #include <assert_pp.h>
00021 
00022 #include "factory_library.h"
00023 
00024 int flFactoryMethod(factory_method_t fm,
00025                     factory_library_op_t op,
00026                     int tag,
00027                     ...)
00028 {
00029     int retval;
00030     va_list args;
00031 
00032     require(fm != NULL);
00033     require(op > FLO_MIN);
00034     require(op < FLO_MAX);
00035 
00036     va_start(args, tag);
00037     retval = fm(op, tag, args);
00038     va_end(args);
00039     return( retval );
00040 }

Generated on Fri Oct 22 07:50:24 2004 for CPU Broker by  doxygen 1.3.9.1