~rye/indicator-ubuntuone/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Minimal vapi for OAuth */
[CCode (cheader_filename="oauth.h")]
namespace OAuth {

    [CCode (cheader_filename="oauth.h", cprefix="OA_")]
    public enum Method {
        HMAC,
        RSA,
        PLAINTEXT
    }

    [CCode (cheader_filename="oauth.h", cprefix="oauth_")]
    public unowned string sign_url2(string url, string? postargs,
                                    OAuth.Method method,
                                    string? http_method,
                                    string c_key, string c_secret,
                                    string t_key, string t_secret);

}