Add/Modify functions for graphic device

1.The first function can get all graphic devices or desired type graphic devices 
2.The second function was modified to be can add both vnc and spice type graphic device