view include/animone/util/osx.h @ 13:efbb8316395f

dep/animone: clean up OS X code GetProcessName() really belongs in fd.cc after removing the stupid unnecessary LaunchServices code that was stolen from... some library :)
author Paper <paper@paper.us.eu.org>
date Mon, 13 May 2024 14:15:47 -0400
parents cce3a81b03bf
children
line wrap: on
line source

#ifndef ANIMONE_ANIMONE_UTIL_OSX_H_
#define ANIMONE_ANIMONE_UTIL_OSX_H_

#include "animone/types.h"
#include <cstdint>
#include <string>
#include <memory>

#include <CoreFoundation/CoreFoundation.h>

namespace animone::internal::osx::util {

bool GetProcessName(pid_t pid, std::string& result);

} // namespace animone::internal::osx::util

#endif // ANIMONE_ANIMONE_UTIL_OSX_H_