All pastes #23533 Raw Edit

Unnamed

public text v1 · immutable
#23533 ·published 2005-09-21 17:28 UTC
rendered paste body
typedef struct iaxc_event_struct {
	struct iaxc_event_struct *next;
	int type;
	union {
		struct iaxc_ev_levels 		levels;
		struct iaxc_ev_text 		text;
		struct iaxc_ev_call_state 	call;
		struct iaxc_ev_netstats 	netstats;
		struct iaxc_ev_url          url;
		struct iaxc_ev_video		video;
		struct iaxc_ev_registration reg;
	} ev;
} iaxc_event;

// ********************************************************************************************
[StructLayout(LayoutKind.Explicit)]
struct iaxc_event_struct 
{
	[FieldOffset(0)]
	public IntPtr next;

	[FieldOffset(4)]
	public int type;

	[FieldOffset(8)]
	public iaxc_ev_levels levels;

	[FieldOffset(8)]
	public iaxc_ev_text text;

	[FieldOffset(8)]
	public iaxc_ev_call_state call;

	[FieldOffset(8)]
	public iaxc_ev_netstats netstats;

	[FieldOffset(8)]
	public iaxc_ev_url url;

	[FieldOffset(8)]
	public iaxc_ev_video video;			
}