Vala (lang)

16 Members
Casual help and talk about the Vala language.1 Servers

Load older messages

Timestamp Message
30 Apr 2019

For example:

const char *mpw_scopeForPurpose(MPKeyPurpose purpose);

Could bind to

string scope_for_purpose(MPKeyPurpose purpose);
13:34:25@toger5:matrix.orgtoger5 Hmm,
I think i really need to bring some more solid examples what i sm struggeling with 😉
13:36:24@kaknife:matrix.orgKaknife Are you refering to (this)[https://gitlab.com/MasterPassword/MasterPassword] when you say masterpassword? If so, that example was taken from mpw-types.h
13:36:42@kaknife:matrix.orgKaknifeSorry, I really messed up that markdown
13:38:04@toger5:matrix.orgtoger5yea exactly. Nice you serached for it !!
13:38:35@toger5:matrix.orgtoger5i will post a gist of what i have right now. (not working and maybe embarrasing stupid 😉 )
13:40:44@toger5:matrix.orgtoger5I think the sitePassword function worked
13:41:43@toger5:matrix.orgtoger5the main problem was the inti function. I think it expects the user struct to be passed as the first arg and not the return value...
13:44:31@kaknife:matrix.orgKaknifeJust so I can find it easier, what header is the init function in?
13:45:35@toger5:matrix.orgtoger5(sorry i forgot that the init function is already a wrapper...)
13:46:41@toger5:matrix.orgtoger5updated the gist with my wrapper function. (I should create a repo for the whole project...)
13:48:32@kaknife:matrix.orgKaknife You are going to want to use a out param
13:52:06@kaknife:matrix.orgKaknifeAlso if you want to bind it to a constructor, I think you could use the instance_pos CCode tag. However I have never tried that myself.


[CCode (cname = "mpw_user_init", instance_pos=0)]
public User(string fullName, string masterPassword, AlgorithmVersion version);

or using out:

[CCode (cname = "mpw_user_init")]
public static void init(out User user, string fullName, string masterPassword, AlgorithmVersion version);
13:58:55@kaknife:matrix.orgKaknife(I might have messed up how instance_pos indexing works though)
3 May 2019
00:55:38@taozuhong:matrix.org@taozuhong:matrix.org joined the room.
01:15:34@taozuhong:matrix.org@taozuhong:matrix.org left the room.
18 May 2019
17:33:03@r-inyuru:matrix.org@r-inyuru:matrix.org left the room.
26 May 2019
06:15:15@mougan:matrix.org@mougan:matrix.org joined the room.
19 Jul 2019
15:26:51@fabrixxm:feneas.org@fabrixxm:feneas.org left the room.
23 Aug 2019
18:43:28@fl0_id:matrix.org@fl0_id:matrix.org left the room.
25 Aug 2019
08:47:39@silterbparthalf2:matrix.org@silterbparthalf2:matrix.org joined the room.
08:47:49@silterbparthalf2:matrix.org@silterbparthalf2:matrix.org left the room.
30 Aug 2019
15:52:22@doj.im:matrix.orgdoj.im joined the room.
17 Sep 2019
08:46:18@migmatite:matrix.orgmigmatite joined the room.
22 Sep 2019
09:44:55@tintou:matrix.orgCorentin Noël joined the room.
28 Sep 2019
16:02:53@mfxbe:matrix.orgmfxbe joined the room.
1 Nov 2019
01:12:15@mougan:matrix.org@mougan:matrix.org left the room.

There are no newer messages yet.

Back to Room List