12345678910111213141516171819202122232425262728293031323334353637 |
- /******************************************************************
- *
- * uEcho for C
- *
- * Copyright (C) Satoshi Konno 2015
- *
- * This is licensed under BSD-style license, see file COPYING.
- *
- ******************************************************************/
- #ifndef _UECHO_MISC_H_
- #define _UECHO_MISC_H_
- #include <uecho/class.h>
- #include <uecho/object.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- /****************************************
- * Function
- ****************************************/
- uEchoClassCode uecho_objectcode2classcode(uEchoObjectCode obj_code);
- bool uecho_isdeviceclassgroupcode(byte code);
- bool uecho_isprofileclassgroupcode(byte code);
- bool uecho_integer2byte(int val, byte* bytes, size_t byte_size);
- int uecho_byte2integer(byte* bytes, size_t byte_size);
- #ifdef __cplusplus
- }
- #endif
- #endif
|