repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
RaisedBar/SurfaceReader | SRTaskBar.h | <filename>SRTaskBar.h
// SRTaskBar.h
// Purpose: wxTaskBarIcon handling
#ifndef SR_TASK_BAR_H
#define SR_TASK_BAR_H
#pragma once
#endif
|
RaisedBar/SurfaceReader | LEDLampsPage.h | <gh_stars>0
// LEDLampsPage.h
// Author: <NAME>
// Raised Bar Ltd.
// http://www.raisedbar.net
// #define _SCL_SECURE_NO_WARNINGS
#ifndef LEDLampsPage_H
#define LEDLampsPage_H
#pragma once
#include <map>
#include "DefineLEDLampDlg.h"
#include "RBEnums.h"
#include "RBWizardPage.h"
#include "RBInputBox.h"
#include... |
RaisedBar/SurfaceReader | MIDISurface.h | // MIDISurface.h
#ifndef MIDI_SURFACE_H
#define MIDI_SURFACE_H
#pragma once
#include "MIDIWidget.h"
#include "RBSpeech.h"
#include "SurfaceParameters.h"
#include "ProtocolCollection.h"
#include "AppCollection.h"
#include <boost/log/trivial.hpp>
#include <boost/log/expressions.hpp>
#include <boost/log/sinks/text_fil... |
RaisedBar/SurfaceReader | RBSpeech.h | <reponame>RaisedBar/SurfaceReader<filename>RBSpeech.h<gh_stars>0
//RBSpeech.h
// speech utilities class header file
//Copyright (�) 2012 Raised Bar Ltd.
#ifndef RB_SPEECH_H
#define RB_SPEECH_H
#pragma once
#include <string>
#include <map>
#include <vector>
#include <algorithm>
#ifndef __WINDOWS__
#ifdef check
#und... |
RaisedBar/SurfaceReader | HardwarePage.h | // HardwarePage.h
// Author: <NAME>
// Raised Bar Ltd.
// http://www.raisedbar.net
// #define _SCL_SECURE_NO_WARNINGS
#ifndef HardwareControlsPage_H
#define HardwareControlsPage_H
#pragma once
#include <map>
#include "RBEnums.h"
#include "RBInputBox.h"
#include "Protocol.h"
#include "SurfacePage.h"
#include "MIDI... |
RaisedBar/SurfaceReader | SurfacePage.h | <reponame>RaisedBar/SurfaceReader<filename>SurfacePage.h
// SurfacePage.h
// Custom dialog class definition for the creation of a new control surface
// Author: <NAME>
// Raised Bar Ltd.
// http://www.raisedbar.net
// #define _SCL_SECURE_NO_WARNINGS
#ifndef SURFACE_PAGE_H
#define SURFACE_PAGE_H
#pragma once
#inclu... |
RaisedBar/SurfaceReader | SurfaceFrame.h | // SurfaceFrame.h
#ifndef SURFACE_FRAME_H
#define SURFACE_FRAME_H
#pragma once
//
#include <filesystem>
#include "RBSpeech.h"
#include "SurfaceReaderHelp.h"
#include "AppConfigChooserDialog.h"
#include "AppConfigWizard.h"
#include "EditProtocol.h"
#include "ProtocolChooserDialog.h"
#include "ProtocolWizard.h"
#inc... |
RaisedBar/SurfaceReader | DefineStateDialog.h | // DefineStateDialog.h
// Custom dialog class definition for adding MIDI message state labels
// Author: <NAME>
// Raised Bar Ltd.
// http://www.raisedbar.net
// #define _SCL_SECURE_NO_WARNINGS
#ifndef DEFINE_STATE_DLG_H
#define DEFINE_STATE_DLG_H
#pragma once
#include <vector>
#include "MIDI.h"
#include "RBTextC... |
RaisedBar/SurfaceReader | ActionPickerMac.h | <reponame>RaisedBar/SurfaceReader
// ActionPickerMac.hpp
// Definition for the ActionPicker class
// Author: <NAME>
// Raised Bar Ltd.
// http://www.raisedbar.net
#ifndef ACTION_PICKER_H
#define ACTION_PICKER_H
#pragma once
#include <wx/platform.h>
#ifdef __WXOSX_COCOA__
#include <boost/foreach.hpp>
#include <... |
RaisedBar/SurfaceReader | DefineCharDialog.h | <gh_stars>0
// DefineCharDialog.h
// Custom dialog class definition for adding MIDI message Chara labels
// Author: <NAME>
// Raised Bar Ltd.
// http://www.raisedbar.net
// #define _SCL_SECURE_NO_WARNINGS
#ifndef DEFINE_CHAR_DLG_H
#define DEFINE_CHAR_DLG_H
#pragma once
#include "RBEnums.h"
#include "RBInputBox.h... |
RaisedBar/SurfaceReader | TranslationTablesDialog.h | <gh_stars>0
// TranslationTablesDialog.h
// Custom dialog class definition for defining MIDI display Table translation tables
// Author: <NAME>
// Raised Bar Ltd.
// http://www.raisedbar.net
// #define _SCL_SECURE_NO_WARNINGS
#ifndef TRANSLATION_TABLE_DLG_H
#define TRANSLATION_TABLE_DLG_H
#pragma once
#include <ma... |
RaisedBar/SurfaceReader | AppConfigChooserDialog.h | <filename>AppConfigChooserDialog.h
// AppConfigChooserDialog.h
// Custom dialog class definition for loading application configurations
// Author: <NAME>
// Raised Bar Ltd.
// http://www.raisedbar.net
// #define _SCL_SECURE_NO_WARNINGS
#ifndef CHOOSE_APP_CONFIG_H
#define CHOOSE_APP_CONFIG_H
#pragma once
#include ... |
RaisedBar/SurfaceReader | apiproto.h |
#ifdef DOLAPIDLL // if we are compiling dolapi.dll
#define DECL_DOLAPIDLL _declspec(dllexport)
#else // else this file is included by a client
#define DECL_DOLAPIDLL _declspec(dllimport)
#endif
// return codes from DolAccess_GetSystem
#define DOLACCESS_NONE 0
#define DOLACCESS_HAL 1
#define DOLACCESS_LUNAR 2
#def... |
RaisedBar/SurfaceReader | RBException.h | // RBException.h
// #define _SCL_SECURE_NO_WARNINGS
#ifndef SURFACE_EXCEPTION_H
#define SURFACE_EXCEPTION_H
#pragma once
#include <wx/string.h>
#include <wx/msw/winundef.h>
class RBException
{
public:
RBException(const wxString & msg)
: wxstrMsg( msg)
{ }
const wxChar *what() const
{
return w... |
RaisedBar/SurfaceReader | AppCollection.h | <reponame>RaisedBar/SurfaceReader
// AppCollection.h
#ifndef APP_COLLECTION_H
#define APP_COLLECTION_H
#pragma once
#include "AppConfig.h"
//AppCollection class, holding AppConfigs.
class AppCollection
{
public:
AppCollection();
~AppCollection();
std::pair <std::wstring, std::wstring> FindAppConfig( std::wstring w... |
RaisedBar/SurfaceReader | DisplayReportDlg.h | <filename>DisplayReportDlg.h
// DisplayReportDlg.h
// Provides a means of displaying the display data for a control surface on-screen
// Author: <NAME>
// Raised Bar Ltd.
// http://www.raisedbar.net
// #define _SCL_SECURE_NO_WARNINGS
#ifndef DISPLAY_REPORT_DLG_H
#define DISPLAY_REPORT_DLG_H
#pragma once
#include ... |
RaisedBar/SurfaceReader | ScreenReaderParametersDlg.h | // ScreenReaderParametersDlg.h
// Custom dialog class definition for the Application Configuration Wizard
// Author: <NAME>
// Raised Bar Ltd.
// http://www.raisedbar.net
// #define _SCL_SECURE_NO_WARNINGS
#ifndef SCREEN_READER_PARAMS_H
#define SCREEN_READER_PARAMS_H
#pragma once
#include <vector>
#include "SRCo... |
RaisedBar/SurfaceReader | ActionsPageWin.h | // ActionsPageWin.h
// Definition for the ActionsPage class, part of the AppConfigWizard
// Author: <NAME>
// Raised Bar Ltd.
// http://www.raisedbar.net
// #define _SCL_SECURE_NO_WARNINGS
#ifndef ACTIONS_PAGE_WIN_H
#define ACTIONS_PAGE_WIN_H
#pragma once
#include <map>
#include <string>
#include "ActionPickerWi... |
RaisedBar/SurfaceReader | DefineMessageDialog.h | // DefineMessageDialog.h
// Custom dialog class definition for the MIDI display message pages of the control surface protocol definition wizard
// Author: <NAME>
// Raised Bar Ltd.
// http://www.raisedbar.net
// #define _SCL_SECURE_NO_WARNINGS
#ifndef DEFINE_DISPLAY_MESSAGE_DLG_H
#define DEFINE_DISPLAY_MESSAGE_DLG_H... |
RaisedBar/SurfaceReader | NewSurfaceDialog.h | <filename>NewSurfaceDialog.h
// NewSurfaceDialog.h
// Custom dialog class definition for the creation of a new control surface
// Author: <NAME>
// Raised Bar Ltd.
// http://www.raisedbar.net
#ifndef NEWSURFACE_H
#define NEWSURFACE_H
#pragma once
#include <boost/shared_ptr.hpp>
#include <wx/StatText.h>
#include <... |
RaisedBar/SurfaceReader | ActionsPageModels.h | // ActionsPageModels.hpp
#ifndef ACTIONS_PAGE_MODELS_H
#define ACTIONS_PAGE_MODELS_H
#pragma once
#include <wx/platform.h>
#ifdef __WXOSX_COCOA__
#include <boost/shared_ptr.hpp>
#include <boost/make_shared.hpp>
#include "AppConfig.h"
#include "MessageDefinition.h"
#include "RBStringFuncs.h"
#include "SRConstants.h... |
RaisedBar/SurfaceReader | SurfaceActions.h | <filename>SurfaceActions.h
// SurfaceActions.h
//Responses to surface events
// #define _SCL_SECURE_NO_WARNINGS
#ifndef SURFACE_ACTIONS_H
#define SURFACE_ACTIONS_H
#pragma once
//#include <string>
//#include "RBException.hpp"
//#include "SRConstants.hpp"
#include "SurfaceAction.h"
//#include <boost/serialization... |
RaisedBar/SurfaceReader | Protocol.h | // Protocol.h
//SurfaceProtocol Class.
// #define _SCL_SECURE_NO_WARNINGS
#ifndef PROTOCOL_H
#define PROTOCOL_H
#pragma once
#include <vector>
#include <map>
#include "DisplayDefinition.h"
#include <boost/uuid/uuid_generators.hpp>
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_io.hpp> // ... |
RaisedBar/SurfaceReader | SurfaceParameters.h | <reponame>RaisedBar/SurfaceReader
// SurfaceParameters.h
//
#ifndef SURFACE_PARAMETERS_H
#define SURFACE_PARAMETERS_H
#pragma once
#include "MIDIWidget.h"
#include "RBEnums.h"
#include "RBException.h"
#include "SRConstants.h"
#include <boost/serialization//version.hpp>
#include <boost/serialization/access.hpp>
#in... |
RaisedBar/SurfaceReader | SurfaceReaderHelp.h | <reponame>RaisedBar/SurfaceReader<gh_stars>0
// SurfaceReaderHelp.h
// URL strings for the SurfaceReader help system
//
// #define _SCL_SECURE_NO_WARNINGS
#ifndef SURFACE_HELP_H
#define SURFACE_HELP_H
#pragma once
#include <string>
// Help files
const std::wstring wstrCHMHelpFile = L"\\SurfaceReader.chm";
const st... |
RaisedBar/SurfaceReader | DefineDisplayDlg.h | // DefineDisplayDialog.h
// Allows definition of a MIDI-controlled display
// Author: <NAME>
// Raised Bar Ltd.
// http://www.raisedbar.net
// #define _SCL_SECURE_NO_WARNINGS
#ifndef DefineDisplayDialog_H
#define DefineDisplayDialog_H
#pragma once
#include "DefineMessageDialog.h"
#include "DisplayDefinition.h"
#in... |
RaisedBar/SurfaceReader | jfwapi.h | <reponame>RaisedBar/SurfaceReader<filename>jfwapi.h<gh_stars>0
#ifndef JFWAPI_H_INCLUDED
#define JFWAPI_H_INCLUDED
#ifndef JFWAPI
#define JFWAPI __declspec(dllimport)
#endif
#ifdef __cplusplus
extern "C"
{ /* Assume C declarations for C++ */
#endif /* __cplusplus */
JFWAPI BOOL WINAPI JFWRunScript (LPCTSTR lpsz... |
RaisedBar/SurfaceReader | RBSpeechWin.h | //RBSpeechWin.h
// speech utilities class header file.
//Copyright (�) 2012 Raised Bar Ltd.
#ifndef RB_SPEECH_WIN_H
#define RB_SPEECH_WIN_H
#pragma once
#include <windows.h>
#include <atlbase.h>
#include <Psapi.h>
//msi/wix includes.
#include <Msi.h>
#include "WIX Include.h"
// Dolphin includes
#ifndef _WIN64
#in... |
RaisedBar/SurfaceReader | DefineLEDLampDlg.h | // DefineLEDLampDialog.h
// Allows definition of a MIDI-controlled LED
// Author: <NAME>
// Raised Bar Ltd.
// http://www.raisedbar.net
// #define _SCL_SECURE_NO_WARNINGS
#ifndef Define_LED_LAMPDialog_H
#define Define_LED_LAMPDialog_H
#pragma once
#include "SRConstants.h"
#include "Protocol.h"
#include "DisplayDef... |
RaisedBar/SurfaceReader | EditProtocol.h | <filename>EditProtocol.h<gh_stars>0
// EditProtocol.h
// #define _SCL_SECURE_NO_WARNINGS
#ifndef EDIT_PROTOCOL_H
#define EDIT_PROTOCOL_H
#pragma once
#include "SurfaceParameters.h"
#include "SysExPage.h"
#include "TextDisplaysPage.h"
#include "LEDLampsPage.h"
#include "HardwarePage.h"
#include "SurfaceReaderHelp.h"... |
RaisedBar/SurfaceReader | DisplayStatesDialog.h | <gh_stars>0
// DisplayStatesDialog.h
// Custom dialog class definition for defining MIDI message state labels
// Author: <NAME>
// Raised Bar Ltd.
// http://www.raisedbar.net
// #define _SCL_SECURE_NO_WARNINGS
#ifndef CONTROL_STATES_DLG_H
#define CONTROL_STATES_DLG_H
#pragma once
#include <vector>
#include "SRCon... |
RaisedBar/SurfaceReader | DefineTranslationTable.h | <reponame>RaisedBar/SurfaceReader<filename>DefineTranslationTable.h<gh_stars>0
// DefineTranslationTable.h
// Custom dialog class definition for adding MIDI message character labels
// Author: <NAME>
// Raised Bar Ltd.
// http://www.raisedbar.net
// #define _SCL_SECURE_NO_WARNINGS
#ifndef DEFINE_TRANSLATION_TABLE_D... |
RaisedBar/SurfaceReader | ProtocolWizard.h | // ProtocolWizard.h
// #define _SCL_SECURE_NO_WARNINGS
#ifndef PROTOCOL_WIZARD_H
#define PROTOCOL_WIZARD_H
#pragma once
//#include "SurfaceParameters.hpp"
#include "SurfacePage.h"
#include "SysExPage.h"
#include "TextDisplaysPage.h"
#include "LEDLampsPage.h"
#include "HardwarePage.h"
#include "ProtocolCollection.h"... |
RaisedBar/SurfaceReader | SurfaceReader.h | //SurfaceReader.h
#ifndef SURFACE_READER_APP_H
#define SURFACE_READER_APP_H
#pragma once
#include "SurfaceFrame.h"
#include "SRConstants.h"
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// for all others, include the necessa... |
RaisedBar/SurfaceReader | RBStringFuncs.h | // RBStringFuncs.h
#ifndef RB_STRING_FUNCS_H
#define RB_STRING_FUNCS_H
#pragma once
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/hex.hpp>
#include <boost/regex.hpp>
#include <boost/algorithm/string/regex.hpp>
#include <boost/lexical_cast.hpp>
using boost::lexical_cast;
using boost::bad_lexical_cas... |
RaisedBar/SurfaceReader | AppConfigWizard.h | // AppConfigWizard.h
// #define _SCL_SECURE_NO_WARNINGS
#ifndef APP_CONFIG_WIZARD_H
#define APP_CONFIG_WIZARD_H
#pragma once
#include <map>
#include <vector>
#include <string>
#include <memory>
#include "AppConfig.h"
#include "DisplaysPage.h"
#include "MessageDefinition.h"
#include "Protocol.h"
#include "RBSpeech... |
RaisedBar/SurfaceReader | SpeechParameters.h | // SpeechParameters.h
//
#ifndef SPEECH_PARAMETERS_H
#define SPEECH_PARAMETERS_H
#pragma once
#ifdef __WXOSX_COCOA__
#include <string>
#include "SRConstants.h"
#include "RBEnums.h"
#include <boost/serialization/access.hpp>
#include <boost/serialization/nvp.hpp>
#include <wx/msw/winundef.h>
class SpeechPara... |
RaisedBar/SurfaceReader | RBEnums.h | // RBEnums.h
#ifndef RB_ENUM_H
#define RB_ENUM_H
#pragma once
enum RBEnum
{
SURFACE_PAGE = 1,
SYSEX_PAGE,
TEXT_DISPLAYS_PAGE,
LED_LAMPS_PAGE,
HARDWARE_MESSAGES_PAGE,
// Dialog navigation
ID_BACK,
ID_NEXT,
ID_FINISHED,
ID_NO_CHANGE,
ID_UP,
ID_DOWN,
ID_STATES,
ID_GlobalStates,
ID_ADD,
ID_LEARN,
ID_EDIT,
ID_D... |
RaisedBar/SurfaceReader | ProtocolChooserDialog.h | // ProtocolChooserDialog.h
// Custom dialog class definition for changing the active protocol for a surface
// Author: <NAME>
// Raised Bar Ltd.
// http://www.raisedbar.net
// #define _SCL_SECURE_NO_WARNINGS
#ifndef CHOOSE_PROTOCOL_H
#define CHOOSE_PROTOCOL_H
#pragma once
#include "SRConstants.h"
#include "RBEnums... |
RaisedBar/SurfaceReader | SROptions.h | // SROptions.h
//
#ifndef SURFACE_READER_OPTIONS_H
#define SURFACE_READER_OPTIONS_H
#pragma once
#include <boost/serialization/access.hpp>
#include <boost/serialization/nvp.hpp>
#include <wx/msw/winundef.h>
class SurfaceReaderOptions
{
public:
SurfaceReaderOptions()
:
blnStartSized( true)
{};
bool GetStartS... |
RaisedBar/SurfaceReader | FileCorrecter.h | <gh_stars>0
#ifndef FILECORRECTER_H
#define FILECORRECTER_H
#pragma once
#include <filesystem>
#include <sstream>
#include <fstream>
#include <string>
class FileCorrecter
{
private:
const std::wstring wstrFinalTag = L"</boost_serialization>";
public:
inline bool IsFileSerializationInvalid(const std::experimental::f... |
RaisedBar/SurfaceReader | UpdateChecker.h | // UpdateChecker.h
// Definition for the UpdateChecker class
// Author: <NAME>
// Raised Bar Ltd.
// http://www.raisedbar.net
// #define _SCL_SECURE_NO_WARNINGS
#ifndef UPDATE_CHECKER_H
#define UPDATE_CHECKER_H
#pragma once
#include "SRConstants.h"
#include "RBEnums.h"
#include <wx/sizer.h>
#include <wx/msgdlg.h... |
RaisedBar/SurfaceReader | Queue.h | // queue.h
// Asynchronous despatch queue
// https://embeddedartistry.com/blog/2017/2/1/c11-implementing-a-dispatch-queue-using-stdfunction
#pragma once
#include <thread>
#include <functional>
#include <queue>
#include <mutex>
#include <condition_variable>
class dispatch_queue
{
typedef std::function<void(voi... |
jamesiotech/device-sdk-c | src/c/schedules.h | <gh_stars>0
/*
* Copyright (c) 2018
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#ifndef _EGDEX_SCHEDULES_H_
#define _EGDEX_SCHEDULES_H_ 1
#include "edgex/edgex.h"
typedef struct edgex_scheduleevent
{
char *name;
char *id;
uint64_t origin;
uint64_t created;
uint64_t modified;
char *sch... |
jamesiotech/device-sdk-c | src/c/device.c | /*
* Copyright (c) 2018
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#include "device.h"
#include "service.h"
#include "errorlist.h"
#include "parson.h"
#include "data.h"
#include "metadata.h"
#include "edgex-rest.h"
#include "cmdinfo.h"
#include "iot/base64.h"
#include "transform.h"
#include <intt... |
jamesiotech/device-sdk-c | src/c/transform.h | <gh_stars>0
/*
* Copyright (c) 2019
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#ifndef _EDGEX_DEVICE_TRANSFORM_H_
#define _EDGEX_DEVICE_TRANSFORM_H_ 1
#include "devsdk/devsdk.h"
#include "edgex/edgex.h"
void edgex_transform_outgoing (devsdk_commandresult *cres, edgex_propertyvalue *props, devsdk... |
jamesiotech/device-sdk-c | src/c/examples/v2/random/device-random.c | /*
* Copyright (c) 2018-2020
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#include "devsdk/devsdk.h"
#include <unistd.h>
#include <signal.h>
#define ERR_CHECK(x) if (x.code) { fprintf (stderr, "Error: %d: %s\n", x.code, x.reason); devsdk_service_free (service); free (impl); return x.code; }
typed... |
jamesiotech/device-sdk-c | src/c/edgex-base.c | <reponame>jamesiotech/device-sdk-c
/*
* Copyright (c) 2019
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#include <errno.h>
#include "edgex/edgex-base.h"
edgex_nvpairs *edgex_nvpairs_new (const char *name, const char *value, edgex_nvpairs *list)
{
edgex_nvpairs *result = malloc (sizeof (edgex_nvpa... |
jamesiotech/device-sdk-c | src/c/v1compat.c | <filename>src/c/v1compat.c<gh_stars>0
/*
* Copyright (c) 2020
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#include "devsdk/devsdk.h"
#undef DEVSDKV2
#include "edgex/devsdk.h"
#include "errorlist.h"
#include "edgex-rest.h"
#include "edgex/device-mgmt.h"
#include "edgex/devices.h"
#include "edgex/pro... |
jamesiotech/device-sdk-c | src/c/examples/terminal/device-terminal.c | /* Pseudo-device service allowing display of messages in a term using C SDK */
/*
* Copyright (c) 2018-2019
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#include <unistd.h>
#include <signal.h>
#include <curses.h>
#include <stdio.h>
#include "edgex/devsdk.h"
#define ERR_CHECK(x) if (x.code) { fpri... |
jamesiotech/device-sdk-c | include/edgex/rest-server.h | <reponame>jamesiotech/device-sdk-c
/*
* Copyright (c) 2018-2020
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#ifndef _EDGEX_REST_SERVER_H_
#define _EDGEX_REST_SERVER_H_ 1
#include "devsdk/devsdk-base.h"
#include "iot/logger.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum
{
GET = 1,
POS... |
jamesiotech/device-sdk-c | include/edgex/registry.h | /*
* Copyright (c) 2019
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#ifndef _EDGEX_REGISTRY_H_
#define _EDGEX_REGISTRY_H_ 1
/**
* @file
* @brief This file defines the interface relating to Edgex
* pluggable registries.
*/
#include "edgex/edgex-base.h"
#include "edgex/error.h"
#include ... |
jamesiotech/device-sdk-c | src/c/callback.c | /*
* Copyright (c) 2018
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#include "callback.h"
#include "profiles.h"
#include "errorlist.h"
#include "parson.h"
#include "service.h"
#include "metadata.h"
#include "edgex-rest.h"
#include <microhttpd.h>
static int updateWatcher
(
devsdk_service_t *svc,... |
jamesiotech/device-sdk-c | src/c/devsdk-base.c | /*
* Copyright (c) 2020
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#include <errno.h>
#include "devsdk/devsdk-base.h"
#include "devutil.h"
void devsdk_strings_free (devsdk_strings *strs)
{
while (strs)
{
devsdk_strings *current = strs;
free (strs->str);
strs = strs->next;
free... |
jamesiotech/device-sdk-c | include/edgex/devsdk.h | <gh_stars>0
/*
* Copyright (c) 2018
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#ifndef _EDGEX_DEVSDK_H_
#define _EDGEX_DEVSDK_H_ 1
#define DEVSDKV1
#ifdef DEVSDKV2
#error Only one of edgex/devsdk.h and devsdk/devsdk.h may be included
#endif
/**
* @file
* @brief This file defines the functions ... |
jamesiotech/device-sdk-c | include/devsdk/devsdk-base.h | <filename>include/devsdk/devsdk-base.h
/*
* Copyright (c) 2020
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#ifndef _DEVSDK_BASE_H_
#define _DEVSDK_BASE_H_ 1
/**
* @file
* @brief This file defines basic types used by SDK functions
*/
#include "iot/data.h"
#ifdef __cplusplus
extern "C" {
#endif... |
jamesiotech/device-sdk-c | src/c/examples/template.c | /* template implementation of an Edgex device service using C SDK */
/*
* Copyright (c) 2018-2019
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#include "edgex/devsdk.h"
#include <unistd.h>
#include <signal.h>
#define ERR_CHECK(x) if (x.code) { fprintf (stderr, "Error: %d: %s\n", x.code, x.reason)... |
jamesiotech/device-sdk-c | include/edgex/edgex-base.h | <reponame>jamesiotech/device-sdk-c
/*
* Copyright (c) 2019
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#ifndef _EDGEX_EDGEX_BASE_H_
#define _EDGEX_EDGEX_BASE_H_
#include "edgex/os.h"
#include "iot/data.h"
typedef iot_data_type_t edgex_propertytype;
typedef enum { LOCKED, UNLOCKED } edgex_device_... |
jamesiotech/device-sdk-c | src/c/cmdinfo.h | /*
* Copyright (c) 2019
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#ifndef _EGDEX_CMDINFO_H_
#define _EGDEX_CMDINFO_H_ 1
#include "edgex/edgex.h"
#include "devsdk/devsdk.h"
typedef struct edgex_cmdinfo
{
char *name;
bool isget;
unsigned nreqs;
devsdk_commandrequest *reqs;
edgex_propert... |
jamesiotech/device-sdk-c | src/c/examples/random/device-random.c | /*
* Copyright (c) 2018-2019
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#include "edgex/devsdk.h"
#include <unistd.h>
#include <signal.h>
#define ERR_CHECK(x) if (x.code) { fprintf (stderr, "Error: %d: %s\n", x.code, x.reason); edgex_device_service_free (service); free (impl); return x.code; }
... |
jamesiotech/device-sdk-c | src/c/discovery.c | <reponame>jamesiotech/device-sdk-c
/*
* Copyright (c) 2018
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#include "discovery.h"
#include "service.h"
#include "profiles.h"
#include "metadata.h"
#include "edgex-rest.h"
#include <string.h>
#include <stdlib.h>
#include <microhttpd.h>
static void *edge... |
jamesiotech/device-sdk-c | src/c/profiles.c | <reponame>jamesiotech/device-sdk-c
/*
* Copyright (c) 2018
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#include "edgex/profiles.h"
#include "profiles.h"
#include "service.h"
#include "metadata.h"
#include "data.h"
#include "edgex-rest.h"
#include "iot/time.h"
#include "errorlist.h"
#include <diren... |
jamesiotech/device-sdk-c | src/c/rest.h | /*
* Copyright (c) 2018
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#ifndef _EDGEX_DEVICE_REST_H_
#define _EDGEX_DEVICE_REST_H_ 1
#include "devsdk/devsdk-base.h"
#include "iot/logger.h"
typedef struct edgex_ctx
{
char *cacerts_file; // Location of CA certificates Curl will use to verify pee... |
jamesiotech/device-sdk-c | src/c/rest-server.h | <reponame>jamesiotech/device-sdk-c<filename>src/c/rest-server.h
/*
* Copyright (c) 2018
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#ifndef _EDGEX_REST_SERVER_INT_H_
#define _EDGEX_REST_SERVER_INT_H_ 1
#include "edgex/rest-server.h"
struct edgex_rest_server;
typedef struct edgex_rest_server edgex... |
jamesiotech/device-sdk-c | src/c/metadata.h | <filename>src/c/metadata.h
/*
* Copyright (c) 2018
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#ifndef _EDGEX_METADATA_H_
#define _EDGEX_METADATA_H_ 1
#include "edgex/edgex.h"
#include "devsdk/devsdk-base.h"
#include "iot/logger.h"
#include "parson.h"
typedef struct edgex_service_endpoints edgex_... |
jamesiotech/device-sdk-c | include/devsdk/devsdk.h | /*
* Copyright (c) 2020
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#ifndef _DEVSDK_DEVSDK_H_
#define _DEVSDK_DEVSDK_H_ 1
#define DEVSDKV2
#ifdef DEVSDKV1
#error Only one of edgex/devsdk.h and devsdk/devsdk.h may be included
#endif
/**
* @file
* @brief This file defines the functions and callba... |
jamesiotech/device-sdk-c | include/edgex/error.h | <gh_stars>0
/*
* Copyright (c) 2018
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#ifndef _EDGEX_ERROR_H_
#define _EDGEX_ERROR_H_ 1
#include "edgex/os.h"
typedef struct edgex_error
{
uint32_t code;
const char *reason;
} edgex_error;
#endif
|
jamesiotech/device-sdk-c | include/edgex/edgex-logging.h | /*
* Copyright (c) 2018
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#ifndef _EDGEX_LOGGING_H_
#define _EDGEX_LOGGING_H_ 1
#include "edgex/os.h"
#include "iot/logger.h"
/* Built-in logger: post to an EdgeX logging service */
extern void edgex_log_torest
(
struct iot_logger_t * logger,
iot_log... |
jamesiotech/device-sdk-c | src/c/examples/v2/counters/device-counter.c | /* Pseudo-device service emulating counters using C SDK */
/*
* Copyright (c) 2018-2020
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#include <unistd.h>
#include <signal.h>
#include "devsdk/devsdk.h"
#define NCOUNTERS 256
#define ERR_CHECK(x) if (x.code) { fprintf (stderr, "Error: %d: %s\n", x.c... |
jamesiotech/device-sdk-c | src/c/profiles.h | <filename>src/c/profiles.h
/*
* Copyright (c) 2018
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#ifndef _EDGEX_DEVICE_PROFILES_H_
#define _EDGEX_DEVICE_PROFILES_H_ 1
#include "service.h"
extern void edgex_device_profiles_upload
(
devsdk_service_t *svc,
devsdk_error *err
);
#endif
|
udem-dlteam/gambit | lib/os_setup.h | <filename>lib/os_setup.h
/* File: "os_setup.h" */
/* Copyright (c) 1994-2018 by <NAME>, All Rights Reserved. */
#ifndef ___OS_SETUP_H
#define ___OS_SETUP_H
#include "os.h"
#include "os_tty.h"
#include "os_time.h"
#include "os_io.h"
/*---------------------------------------------------------------------------*/
/*... |
udem-dlteam/gambit | include/stamp.h | /*
* Time stamp of last source code repository commit.
*/
#define ___STAMP_YMD 20200101
#define ___STAMP_HMS 213000
|
thomasdenney/microjit | source/Tests/Environment/Tests.h | #pragma once
#include "Config.h"
namespace Environment {
bool testStack();
} |
thomasdenney/microjit | source/JIT/CodeGen.h | <reponame>thomasdenney/microjit
#pragma once
#include "ARM/Functor.h"
#include "Environment/VM.h"
namespace JIT {
extern const ARM::Register StatePointerRegister;
extern const ARM::Register StackPointerRegister;
extern const ARM::Register StackTopRegister;
extern const ARM::Register TempRegister;
extern const ARM::R... |
thomasdenney/microjit | source/Environment/Device.h | #pragma once
#include "Config.h"
#include "Code/Instruction.h"
#include "VM.h"
namespace Environment {
class Device {
public:
virtual VMFunction resolveVirtualMachineFunction(Code::Instruction instruction) const = 0;
virtual void programHalted() const = 0;
};
} |
thomasdenney/microjit | source/JIT/RegisterFileState.h | #pragma once
#include "ARM/Encoder.h"
#include "ARM/Functor.h"
#include "Config.h"
#include <cstdint>
#include <utility>
namespace JIT {
const static ARM::Register StackRegisters[] = {
ARM::Register::r2,
// Keep TempRegister == r3 free
// The next two are temp registers but they are only used by the stac... |
thomasdenney/microjit | source/Tests/Device/Tests.h | #pragma once
#include "Config.h"
namespace Device {
void testBeep();
void testTone();
void testRgb();
void testColour();
void testFlash();
void testPixel();
void testAccelerometer();
void testThermometer();
void testMusic();
} |
thomasdenney/microjit | source/Config.h | <gh_stars>1-10
#pragma once
#include "Enums.h"
/**
* I don't really want to use this heap allocator:
* - It isn't a particularly good implementation of a heap allocator
* - It literally uses macros to redefine malloc and free, and then
* everything else relies on it
* - In order to use the macros you have ... |
thomasdenney/microjit | source/ARM/Encoder.h | <reponame>thomasdenney/microjit
#pragma once
#include "Config.h"
#include <cstdint>
/**
* This files defines functions that encode ARM instructions into the Thumb
* instruction sets.
*
* All instructions are encoded in little endian.
*
* The primary source for the functions in this file is the ARM reference m... |
thomasdenney/microjit | source/JIT/InstructionSelection.h | #pragma once
#include "Config.h"
#include "Code/Instruction.h"
namespace JIT {
bool instructionImplementedWithCall(Code::Instruction instruction);
} |
thomasdenney/microjit | source/JIT/PCRelativeLoad.h | #pragma once
#include "ARM/Functor.h"
namespace JIT {
/**
* Behaves a lot like the regular linker operations, but because the linker doesn't
* use this class I've avoided implementing it
*/
class PCRelativeLoad {
private:
size_t m_instructionOffset;
int m_value;
ARM::Register m_destination;
public:
... |
thomasdenney/microjit | source/Code/Iterator.h | <gh_stars>1-10
#pragma once
#include "Config.h"
#include "Array.h"
#include "Instruction.h"
#include "Region.h"
/**
* This should not be less than three in the current implementation
* Increasing this will significantly damage the performance of the iterator
* (it is designed to support a small number of *very* s... |
thomasdenney/microjit | source/Code/BlockStackEffect.h | <gh_stars>1-10
#pragma once
#include "Config.h"
#include "Instruction.h"
#include "Iterator.h"
namespace Code {
/**
* See also InstructionStackEffect. These are deliberately different classes because they have different semantics
*/
class BlockStackEffect {
private:
bool m_deterministicPops;
int m_popCoun... |
thomasdenney/microjit | source/JIT/Queue.h | #pragma once
#include "Config.h"
#include <cstddef>
#include <cstdint>
#include <cstdio>
namespace JIT {
/**
* A queue designed to be conservative with memory usage with the expectation that queues are shortlived.
*
* It is not safe and doesn't do bounds checking
*
* This class was literally just introduced ... |
thomasdenney/microjit | source/Environment/VM.h | <gh_stars>1-10
#pragma once
#include "Config.h"
#include "ARM/Functor.h"
#include "Code/Array.h"
#include "Stack.h"
#include "VMStatus.h"
// Forward declaration
namespace JIT {
class Compiler;
}
namespace Environment {
struct VM;
/**
* The type for the virtual machine state changes
*/
typedef VM* (*VMFunction)(V... |
thomasdenney/microjit | source/JIT/DynamicCompilation.h | #pragma once
#include "Environment/VM.h"
// TODO: Verify if it can actually be placed in a namespace, or whether that messes with name mangling
// namespace JIT {
extern "C" {
/**
* This function is implemented in ASM
*/
Environment::VM* compileFunctionDynamicallyASM(Environment::VM* state, int32_t* stackPointer, ... |
thomasdenney/microjit | source/JIT/StackLinkOperation.h | <filename>source/JIT/StackLinkOperation.h
#pragma once
#include "Config.h"
#include "LinkOperation.h"
#include <cstddef>
namespace JIT {
class StackLinkOperation : public LinkOperation {
private:
size_t m_destination;
int m_skipCount;
public:
StackLinkOperation(size_t startOffset, size_t destination, i... |
thomasdenney/microjit | source/JIT/Compiler.h | #pragma once
#include "Config.h"
#include "ARM/Functor.h"
#include "Code/Array.h"
#include "CodeGen.h"
#include "Environment/Device.h"
#include "Environment/VM.h"
#include "Linker.h"
#include "PCRelativeLoad.h"
#include "RegisterFileState.h"
#include "StaticAnalysis.h"
#include <functional>
#include <utility>
#includ... |
thomasdenney/microjit | source/JIT/SpecialLinkerLocations.h | <reponame>thomasdenney/microjit
#pragma once
#include "Config.h"
#include <cstddef>
namespace JIT {
/// OFFSETS of special linker locations for error handling and the like
class SpecialLinkerLocations {
public:
size_t m_locations[3];
};
} |
thomasdenney/microjit | source/Code/Region.h | <reponame>thomasdenney/microjit
#pragma once
#include "Config.h"
#include <cstddef>
namespace Code {
/**
* Used for representing a window into an array
*/
class Region {
public:
Region()
: Region(0, 0)
{
}
Region(size_t start, size_t length)
: m_start(start)
, m_length(leng... |
thomasdenney/microjit | source/Tests/ARM/Tests.h | #pragma once
#include "Config.h"
namespace ARM {
bool testEncoder();
bool testDecoder();
} |
thomasdenney/microjit | source/Tests/JIT/MarksExecutionTests.h | #pragma once
#include "Code/Instruction.h"
namespace JIT {
extern size_t EnumTestCodeLength;
extern Code::Instruction EnumTestCode[];
extern size_t LinkTest2Length;
extern Code::Instruction LinkTest2Code[];
extern size_t LoopExitTestLength;
extern Code::Instruction LoopExitTestCode[];
extern size_t UsingTestLengt... |
thomasdenney/microjit | source/JIT/ConditionalBranch.h | #include "StackLinkOperation.h"
#include "Config.h"
namespace JIT {
/**
* This naive version should only be used with the naive register allocation routine
* or the 'dumb' stack allocation one, i.e. not the COW allocator
*/
class ConditionalBranch : public StackLinkOperation {
public:
ConditionalBranch(size_t... |
thomasdenney/microjit | source/Environment/Stack.h | #pragma once
#include "Config.h"
#include <cstdint>
#include <cstdlib>
namespace Environment {
/**
* Unsafe implementation of a word-sized stack
* This implementation does not currently do any bounds checking.
*/
struct Stack {
/**
* These members are public so that their offsets can be computed by the ... |
thomasdenney/microjit | source/Environment/VMStatus.h | <filename>source/Environment/VMStatus.h
#pragma once
#include "Config.h"
#include <cstdint>
namespace Environment {
/**
* Although this is represented with a uint32_t it is essential
* that all enum values can fit in uint8_t because of instruction
* generation
*/
enum class VMStatus : uint32_t {
Success = 0... |
thomasdenney/microjit | source/JIT/MinimalConditionalBranch.h | #include "StackLinkOperation.h"
#include "Config.h"
#include "ARM/Encoder.h"
namespace JIT {
class MinimalConditionalBranch : public StackLinkOperation {
private:
ARM::Condition m_condition;
ARM::Register m_operand1, m_operand2;
public:
MinimalConditionalBranch(size_t startOffset, size_t to, int skipCou... |
thomasdenney/microjit | source/JIT/Tests.h | <reponame>thomasdenney/microjit<gh_stars>1-10
#pragma once
#include "Config.h"
namespace JIT {
bool testCodeExecution();
bool testStaticAnalysis();
void testBeep();
void testTone();
void testRgb();
void testColour();
void testFlash();
void testPixel();
void testAccelerometer();
void testThermometer();
} |
thomasdenney/microjit | source/Tests/Bit/Tests.h | <filename>source/Tests/Bit/Tests.h<gh_stars>1-10
#pragma once
#include "Config.h"
namespace Bit {
bool bitTests();
} |
thomasdenney/microjit | source/Device/MicroBitDevice.h | #pragma once
#include "Config.h"
#include "Environment/Device.h"
namespace Device {
class MicroBitDevice : public Environment::Device {
public:
Environment::VMFunction resolveVirtualMachineFunction(Code::Instruction instruction) const final;
void programHalted() const final;
static MicroBitDevice& sing... |
thomasdenney/microjit | source/JIT/BoundsCheckCodeGenerator.h | #pragma once
#include "Code/BlockStackEffect.h"
#include "Linker.h"
namespace JIT {
class BoundsCheckCodeGenerator {
private:
ARM::Functor* m_func;
Linker* m_linker;
BoundsCheckCodeGenerator(ARM::Functor* func, Linker* linker)
: m_func(func)
, m_linker(linker)
{
}
void compi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.