diff src/sun/sun.c @ 1099:6e34e226676a trunk

[svn] - sun: convert to plugin API v2
author nenolod
date Thu, 24 May 2007 23:34:49 -0700
parents d124034ebea3
children 761e17b23e0c
line wrap: on
line diff
--- a/src/sun/sun.c	Thu May 24 23:33:06 2007 -0700
+++ b/src/sun/sun.c	Thu May 24 23:34:49 2007 -0700
@@ -31,7 +31,7 @@
 {
 	NULL,
 	NULL,
-	NULL,			/* Description */
+	"BSD/Sun Output Plugin",	/* Description */
 	sun_init,
 	sun_cleanup,
 	sun_about,
@@ -50,13 +50,9 @@
 	NULL
 };
 
+OutputPlugin *sun_oplist[] = { &sun_op, NULL };
 
-OutputPlugin * get_oplugin_info(void)
-{
-	sun_op.description = g_strdup_printf(_("BSD Sun Driver %s"),
-					     SUN_VERSION);
-	return (&sun_op);
-}
+DECLARE_PLUGIN(sun, NULL, NULL, NULL, sun_oplist, NULL, NULL, NULL);
 
 void sun_init(void)
 {