I would like to see/detect if something connects to my virtual midi port.
So I create a port:
snd_seq_create_simple_port(handle, "my port",
SND_SEQ_PORT_CAP_WRITE|SND_SEQ_PORT_CAP_SUBS_WRITE,
SND_SEQ_PORT_TYPE_MIDI_GENERIC);
Now before I start producing MIDI events on that port, I would like to know if someone connected/mapped that port (e.g. using aconnect or patchage or so).