{"action":"opened","issue":{"url":"https://api.github.com/repos/jochenvg/go-udev/issues/1","repository_url":"https://api.github.com/repos/jochenvg/go-udev","labels_url":"https://api.github.com/repos/jochenvg/go-udev/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jochenvg/go-udev/issues/1/comments","events_url":"https://api.github.com/repos/jochenvg/go-udev/issues/1/events","html_url":"https://github.com/jochenvg/go-udev/issues/1","id":133587137,"number":1,"title":"Unable to pass nil string to FilterAddMatchSubsystemDevtype","user":{"login":"nkovacs","id":2269242,"avatar_url":"https://avatars.githubusercontent.com/u/2269242?v=3","gravatar_id":"","url":"https://api.github.com/users/nkovacs","html_url":"https://github.com/nkovacs","followers_url":"https://api.github.com/users/nkovacs/followers","following_url":"https://api.github.com/users/nkovacs/following{/other_user}","gists_url":"https://api.github.com/users/nkovacs/gists{/gist_id}","starred_url":"https://api.github.com/users/nkovacs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkovacs/subscriptions","organizations_url":"https://api.github.com/users/nkovacs/orgs","repos_url":"https://api.github.com/users/nkovacs/repos","events_url":"https://api.github.com/users/nkovacs/events{/privacy}","received_events_url":"https://api.github.com/users/nkovacs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-14T22:21:55Z","updated_at":"2016-02-14T22:21:55Z","closed_at":null,"body":"Hi\r\nI ran into a problem with `FilterAddMatchSubsystemDevtype`. I was trying to monitor input device events, but those devices don't have a devtype (`Device.Devtype()` returns an empty string in go, but `udev_device_get_devtype` actually returns a null pointer in C).\r\n\r\nWhen I tried `FilterAddMatchSubsystemDevtype(\"input\", \"\")`, the events were not delivered. I have to pass a null pointer to `udev_monitor_filter_add_match_subsystem_devtype` to tell it to not filter by device type, but `FilterAddMatchSubsystemDevtype` doesn't allow me to do that."}}