diff --git a/acc_user.h b/acc_user.h index 972b9e2ce..a34c59cf3 100644 --- a/acc_user.h +++ b/acc_user.h @@ -19,7 +19,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) && !defined(macintosh) -#ident "$Id: acc_user.h,v 1.1 2002/05/23 03:46:42 steve Exp $" +#ident "$Id: acc_user.h,v 1.2 2002/05/30 02:06:05 steve Exp $" #endif /* @@ -46,11 +46,15 @@ extern int acc_error_flag; extern int acc_initialize(void); extern void acc_close(void); +extern char*acc_product_version(void); EXTERN_C_END /* * $Log: acc_user.h,v $ + * Revision 1.2 2002/05/30 02:06:05 steve + * Implement acc_product_version. + * * Revision 1.1 2002/05/23 03:46:42 steve * Add the acc_user.h header file. * diff --git a/libveriuser/Makefile.in b/libveriuser/Makefile.in index 0de6faebb..3feebb65b 100644 --- a/libveriuser/Makefile.in +++ b/libveriuser/Makefile.in @@ -16,7 +16,7 @@ # 59 Temple Place - Suite 330 # Boston, MA 02111-1307, USA # -#ident "$Id: Makefile.in,v 1.4 2002/05/24 20:29:07 steve Exp $" +#ident "$Id: Makefile.in,v 1.5 2002/05/30 02:06:05 steve Exp $" # # SHELL = /bin/sh @@ -44,7 +44,7 @@ CFLAGS = @CFLAGS@ LDFLAGS = @LDFLAGS@ STRIP = @STRIP@ -A = a_close.o a_initialize.o +A = a_close.o a_initialize.o a_product_version.o O = finish.o io_print.o mc_scan_plusargs.o $A all: libveriuser.a diff --git a/libveriuser/a_product_version.c b/libveriuser/a_product_version.c new file mode 100644 index 000000000..cd492faf2 --- /dev/null +++ b/libveriuser/a_product_version.c @@ -0,0 +1,40 @@ +/* vi:sw=6 + * Copyright (c) 2002 Michael Ruff (mruff at chiaro.com) + * + * This source code is free software; you can redistribute it + * and/or modify it in source code form under the terms of the GNU + * General Public License as published by the Free Software + * Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA + */ +#if !defined(WINNT) +#ident "$Id: a_product_version.c,v 1.1 2002/05/30 02:06:05 steve Exp $" +#endif + +# include +# include + +char *acc_product_version(void) +{ + s_vpi_vlog_info info; + + if (! vpi_get_vlog_info(&info)) return (char *)0; + + return info.version; +} + +/* + * $Log: a_product_version.c,v $ + * Revision 1.1 2002/05/30 02:06:05 steve + * Implement acc_product_version. + * + */