Ticket #304: testcase.vala

File testcase.vala, 321 bytes (added by dignan, 2 years ago)

Vala testcase (easier to read)

Line 
1using Avahi;
2using GLib;
3
4public class Test {
5
6    public static void main (string[] args) {
7        Client c = new Client();
8        EntryGroup g = new EntryGroup();
9       
10        try{
11            g.attach(c);
12        } catch (Avahi.Error e){
13            stderr.printf("Error: %s\n", e.message);   
14        }
15    }
16}