#endif
}
-
-list<string>
-network_interfaces ()
-{
- list<string> interfaces;
-
-#ifdef DCPOMATIC_POSIX
- struct ifaddrs* addresses = 0;
-
- getifaddrs (&addresses);
-
- for (struct ifaddrs* i = addresses; i; i = i->ifa_next) {
- if (i->ifa_addr->sa_family == AF_INET) {
- void* p = &((struct sockaddr_in *) i->ifa_addr)->sin_addr;
- char b[INET_ADDRSTRLEN];
- inet_ntop (AF_INET, p, b, INET_ADDRSTRLEN);
- interfaces.push_back (b);
- }
- }
-
- freeifaddrs (addresses);
-#endif
-
- return interfaces;
-}
extern void run_ffprobe (boost::filesystem::path, boost::filesystem::path, boost::shared_ptr<Log>);
extern std::list<std::pair<std::string, std::string> > mount_info ();
extern boost::filesystem::path openssl_path ();
-extern std::list<std::string> network_interfaces ();
#ifdef DCPOMATIC_OSX
extern boost::filesystem::path app_contents ();
#endif