Revision: 453
          http://vde.svn.sourceforge.net/vde/?rev=453&view=rev
Author:   rd235
Date:     2010-11-29 12:20:11 +0000 (Mon, 29 Nov 2010)

Log Message:
-----------
port_user function added: port->user for plugins

Modified Paths:
--------------
    trunk/vde-2/include/vdeplugin.h
    trunk/vde-2/src/vde_switch/port.c

Modified: trunk/vde-2/include/vdeplugin.h
===================================================================
--- trunk/vde-2/include/vdeplugin.h     2010-11-23 23:42:40 UTC (rev 452)
+++ trunk/vde-2/include/vdeplugin.h     2010-11-29 12:20:11 UTC (rev 453)
@@ -113,5 +113,6 @@
 
 void printoutc(FILE *f, const char *format, ...);
 
+uid_t port_user(int port);
 
 #endif

Modified: trunk/vde-2/src/vde_switch/port.c
===================================================================
--- trunk/vde-2/src/vde_switch/port.c   2010-11-23 23:42:40 UTC (rev 452)
+++ trunk/vde-2/src/vde_switch/port.c   2010-11-29 12:20:11 UTC (rev 453)
@@ -1195,6 +1195,13 @@
 }
 #endif
 
+uid_t port_user(int port)
+{
+       if (port<0 || port>=numports)
+               return -1;
+       else
+               return portv[port]->user;
+}
 
 static struct comlist cl[]={
        {"port","============","PORT STATUS MENU",NULL,NOARG},


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
vde-users mailing list
vde-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vde-users

Reply via email to