• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using SystemConfiguration API inside KEXT
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using SystemConfiguration API inside KEXT


  • Subject: Re: Using SystemConfiguration API inside KEXT
  • From: John B Brown <email@hidden>
  • Date: Tue, 11 May 2010 10:11:47 -0600

Unless you have a sub-directory under /usr/include/ called /usr/include/SystemConfiguration/ your call will not find any files in that directory using #include <SystemConfiguration/SystemConfiguration.h> as the #include directive.

On my machine running Mac OS 10.6.3 and Xcode 3.2.2 the only files SystemConfiguration.h are in sub-directories "Headers" in all cases, not in any sub-directory "SystemConfiguration."

Use findutils! Set your #include accordingly. It might help also to use '-I"some tree"' in your C flags to the compiler, like

-I/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks\/SystemConfiguration.framework/Versions/A/Headers

or wherever 'locate SytemConfiguration.h' finds that you like and that is found on your system.

You might have to go to [ftp://ftp.gnu.org/gnu/] to find a real working source for findutils; the piece of crap Apple gives you in their system load is just that, a piece of crap. You have practically zero control over what it finds when their version of 'updatedb' runs. Needless to say, updatedb does NOT exist in your path so you must go to some considerable trouble to run it whenever you wish.

By the way, is your NKE a sneaker control, a navigation system, or some sort of motion detector?

On 5/11/10 9:11 AM, Andy Huang wrote:
Hi,

I am developing a NKE. Now I need to call SystemConfiguration framework API
to find primary interface. When I tried to include
<SystemConfiguration/SystemConfiguration.h>, I always get compiliation error
saying not able to find the header file. Any ideas? TIA.




_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden




	Shalom,

	John B. Brown.
	[email@hidden]
	358 High Street,
	Buffalo, Wyoming
	82834

"Freedom is not worth having if it does not include
the freedom to make mistakes"  Mahatma Gandhi
"If any question why we died, tell them,
because our fathers lied."  Rudyard Kipling
"A man who does not know the truth is just an idiot
but a man who knows the truth and calls it a lie
is a crook."  Bertolt Brecht
"I wonder whether the world is being run
by smart people who are putting us on
or by imbeciles who really mean it."  Mark Twain
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Using SystemConfiguration API inside KEXT
      • From: Jean-Daniel Dupas <email@hidden>
References: 
 >Using SystemConfiguration API inside KEXT (From: Andy Huang <email@hidden>)

  • Prev by Date: Re: How can I find primary network interface name in the NKE
  • Next by Date: Re: Using SystemConfiguration API inside KEXT
  • Previous by thread: Re: Using SystemConfiguration API inside KEXT
  • Next by thread: Re: Using SystemConfiguration API inside KEXT
  • Index(es):
    • Date
    • Thread