Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Getting user visible serial port names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting user visible serial port names



I'm somewhat in the same situation.
I was thinking of using this pseudocode as a workaround
for the lack of OTGetUserNameFromPortRef():

if (OTPortRecord.fPortName)
{
// use fPortName
}
else
{
// use fModuleName + "." + fSlotID
}

But, that sounds like what you've come up with also. In
my case, I'm trying to get descriptive names for some
Ethernet devices. I guess I could get away with calling
out to OTGetUserNameFromPortRef on Classic, but I'd like
to avoid it.

It really seems like the groundwork for implementing
OTGetUserNameFromPortRef is there. It seems like it should
just be
BlockMoveData(OTPortRefToPortRecord(ref).fPortName, friendlyName, _);

--Steve

On Mon, Mar 19, 2001 at 08:01:51PM -0500, Adam Skwersky wrote:
> Hi,
>
> So how does one get the "user visible" names of the
> serial port while linking with Carbon? I previously used
> OTGetUserNameFromPortRef() but this is not supported in
> Carbon. I would rather my users has a better description
> of the serial port thatn "serialA" and "serialB".
> I will only use OT Serial on a pure classic (not classic
> in Mac OS X) MacOS. So would I still go with the shared
> library approach to link to OTGetUserNameFromPortRef()?
>
> I will be using OT to access the serial port in a Mac OS
> 9.x or older environment. I will not be using when
> running under Mac OS X.
>
> thanks,
> Adam Skwersky
>
> PS: for some reason, the list did not recognize me as a subscriber.
> I am a subscriber, or else I would not be getting Open Transport
> emails! Quinn??
> _______________________________________________
> opentransportdev mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/opentransportdev


References: 
 >Getting user visible serial port names (From: Adam Skwersky <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.