On 12.2.2013 12.29, "Hans de Goede" <hdego...@redhat.com> wrote:
> Currently the following events are defined: > >LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED: A device has arrived and is ready to >use >LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT: A device has left and is no longer >available > >Not the best names ever, I would have called them ADDED / REMOVED Interesting how one can get worked up by choice of names (Referring to myself)! Following is just presented as my personal feelings nothing more, but I'm offering them as an example of how an 'outsider' might view the words. It is very difficult for the sender of a message to get into the shoes of the receiver and thus understand what the message means in the receivers context. ARRIVED and LEFT both are sort of personal and thus out of place here. 'He arrived' or 'Elvis has left the building'. LEFT is often and in many contexts paired with RIGHT so I don't like that. ARRIVED/ADDED/LEFT seem to beg the question ARRIVED where, ADDED to what, LEFT from what? LEFT what behind? Something is LEFT after we removed something else? REMOVED I kind of like because that is what this action is typically called. 'Life is too short to REMOVE USB safely' AVAILABLE and UNAVAILABLE have been suggested, this is also kind of reasonable and likable and I like the symmetry. But a device can be UNAVAILABLE because it is in use by some other application so that is not good. USB spec "Attachment and Removal" would suggest ATTACH and REMOVE, which is sort of nice as it stems from the 'official' wordage. Attachment is hard to spell but I just might manage ATTACH. SUSPEND and RESUME have also been suggested but those are sort of reserved names for different USB functionality so I would not go there. I suggested PLUGGED/UNPLUGGED. PLUGing is everyday usage that people use when they talk about usb devices, 'plug it it', 'plug it out' I have some reservations about PLUGGED as I'm not sure if anyone PLUGS a device though they often UNPLUG them, which to me says that it should be PLUGGED_IN and my internal need for symmetry then calls for PLUGGED_OUT, but that then is two words and an underscore where one should be enough. So the results of the Finnish Jury is that my vote goes to: ATTACHED / REMOVED Single words in everyday use with usb devices with pedigree in the official usb standard. just my 2 snt of this subject br Kusti ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel