Skip to content

Instantly share code, notes, and snippets.

@jpfr
jpfr / ua_client_subscriptions.h
Last active November 14, 2017 12:55
open62541 Client Subscriptions API
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef UA_CLIENT_SUBSCRIPTIONS_H_
#define UA_CLIENT_SUBSCRIPTIONS_H_
#include "ua_client.h"
#ifdef UA_ENABLE_SUBSCRIPTIONS
@jpfr
jpfr / types.rst
Last active March 23, 2016 14:18

Data Types

In open62541, all data types share the same basic API for creation, copying and deletion. The header ua_types.h defines the builtin types. In addition, we auto-generate ua_types_generated.h with additional types as well as the following function definitions for all (builtin and generated) data types T.

void T_init(T *ptr)

@jpfr
jpfr / interpreter.c
Created October 30, 2014 20:44
AW's Interpreter
// Based on http://www.jsoftware.com/jwiki/Essays/Incunabulum
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
typedef struct a {
long t;
long r;
long d[3];
long p[2];