当前位置: 首页>>代码示例>>C++>>正文


C++ THRIFT_UNUSED_VAR函数代码示例

本文整理汇总了C++中THRIFT_UNUSED_VAR函数的典型用法代码示例。如果您正苦于以下问题:C++ THRIFT_UNUSED_VAR函数的具体用法?C++ THRIFT_UNUSED_VAR怎么用?C++ THRIFT_UNUSED_VAR使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了THRIFT_UNUSED_VAR函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: thrift_binary_protocol_write_set_end

gint32
thrift_binary_protocol_write_set_end (ThriftProtocol *protocol, GError **error)
{
  THRIFT_UNUSED_VAR (protocol);
  THRIFT_UNUSED_VAR (error);
  return 0;
}
开发者ID:glycerine,项目名称:thrift,代码行数:7,代码来源:thrift_binary_protocol.c

示例2: thrift_framed_transport_write_end

/* implements thrift_transport_write_end
 * called when write is complete.  nothing to do on our end. */
gboolean thrift_framed_transport_write_end(ThriftTransport *transport,
        GError **error) {
    /* satisfy -Wall */
    THRIFT_UNUSED_VAR(transport);
    THRIFT_UNUSED_VAR(error);
    return TRUE;
}
开发者ID:syscx,项目名称:libmars,代码行数:9,代码来源:thrift_framed_transport.c

示例3: thrift_test_handler_test_list

gboolean
thrift_test_handler_test_list (TTestThriftTestIf  *iface,
                               GArray            **_return,
                               const GArray       *thing,
                               GError            **error)
{
  guint i;
  gboolean first = TRUE;

  THRIFT_UNUSED_VAR (iface);
  THRIFT_UNUSED_VAR (error);

  printf ("testList({");
  for (i = 0; i < thing->len; i += 1) {
    gint32 value;
    gint32 *new_value;

    if (first)
      first = FALSE;
    else
      printf (", ");

    value = g_array_index (thing, gint32, i);
    printf ("%d", value);

    new_value = g_malloc (sizeof *new_value);
    *new_value = value;
    g_array_append_val (*_return, *new_value);
  }
  printf ("})\n");

  return TRUE;
}
开发者ID:LiveTex,项目名称:Thrift,代码行数:33,代码来源:thrift_test_handler.c

示例4: thrift_memory_buffer_close

/* implements thrift_transport_close */
gboolean
thrift_memory_buffer_close (ThriftTransport *transport, GError **error)
{
  THRIFT_UNUSED_VAR (transport);
  THRIFT_UNUSED_VAR (error);
  return TRUE;
}
开发者ID:917386389,项目名称:thrift,代码行数:8,代码来源:thrift_memory_buffer.c

示例5: thrift_test_handler_test_set

gboolean
thrift_test_handler_test_set (TTestThriftTestIf  *iface,
                              GHashTable        **_return,
                              const GHashTable   *thing,
                              GError            **error)
{
  GHashTableIter hash_table_iter;
  gpointer key;
  gboolean first = TRUE;

  THRIFT_UNUSED_VAR (iface);
  THRIFT_UNUSED_VAR (error);

  printf ("testSet({");
  g_hash_table_iter_init (&hash_table_iter, (GHashTable *)thing);
  while (g_hash_table_iter_next (&hash_table_iter,
                                 &key,
                                 NULL)) {
    gint32 *new_key;

    if (first)
      first = FALSE;
    else
      printf (", ");

    printf ("%d", *(gint32 *)key);

    new_key = g_malloc (sizeof *new_key);
    *new_key = *(gint32 *)key;
    g_hash_table_insert (*_return, new_key, NULL);
  }
  printf ("})\n");

  return TRUE;
}
开发者ID:LiveTex,项目名称:Thrift,代码行数:35,代码来源:thrift_test_handler.c

示例6: thrift_test_handler_test_multi

gboolean
thrift_test_handler_test_multi (TTestThriftTestIf   *iface,
                                TTestXtruct        **_return,
                                const gint8          arg0,
                                const gint32         arg1,
                                const gint64         arg2,
                                const GHashTable    *arg3,
                                const TTestNumberz   arg4,
                                const TTestUserId    arg5,
                                GError             **error)
{
  THRIFT_UNUSED_VAR (iface);
  THRIFT_UNUSED_VAR (error);
  THRIFT_UNUSED_VAR (arg3);
  THRIFT_UNUSED_VAR (arg4);
  THRIFT_UNUSED_VAR (arg5);

  printf ("testMulti()\n");

  g_object_set (*_return,
                "string_thing", g_strdup ("Hello2"),
                "byte_thing",   arg0,
                "i32_thing",    arg1,
                "i64_thing",    arg2,
                NULL);

  return TRUE;
}
开发者ID:LiveTex,项目名称:Thrift,代码行数:28,代码来源:thrift_test_handler.c

示例7: thrift_binary_protocol_read_set_end

int32_t
thrift_binary_protocol_read_set_end (ThriftProtocol *protocol ,
                                     int *error )
{
  THRIFT_UNUSED_VAR (protocol);
  THRIFT_UNUSED_VAR (error);
  return 0;
}
开发者ID:nischalsheth,项目名称:contrail-sandesh,代码行数:8,代码来源:thrift_binary_protocol.c

示例8: thrift_socket_flush

/* implements thrift_transport_flush
 * flush pending data.  since we are not buffered, this is a no-op */
gboolean
thrift_socket_flush (ThriftTransport *transport, GError **error)
{
  /* satisfy -Wall */
  THRIFT_UNUSED_VAR (transport);
  THRIFT_UNUSED_VAR (error);
  return TRUE;
}
开发者ID:dreiss,项目名称:old-thrift,代码行数:10,代码来源:thrift_socket.c

示例9: thrift_binary_protocol_read_field_end

gint32
thrift_binary_protocol_read_field_end (ThriftProtocol *protocol,
                                       GError **error)
{
  THRIFT_UNUSED_VAR (protocol);
  THRIFT_UNUSED_VAR (error);
  return 0;
}
开发者ID:glycerine,项目名称:thrift,代码行数:8,代码来源:thrift_binary_protocol.c

示例10: thrift_binary_protocol_write_sandesh_end

int32_t
thrift_binary_protocol_write_sandesh_end (ThriftProtocol *protocol ,
                                          int *error )
{
  THRIFT_UNUSED_VAR (protocol);
  THRIFT_UNUSED_VAR (error);
  return 0;
}
开发者ID:nischalsheth,项目名称:contrail-sandesh,代码行数:8,代码来源:thrift_binary_protocol.c

示例11: thrift_memory_buffer_read_end

/* implements thrift_transport_read_end
 * called when read is complete.  nothing to do on our end. */
gboolean
thrift_memory_buffer_read_end (ThriftTransport *transport, GError **error)
{
  /* satisfy -Wall */
  THRIFT_UNUSED_VAR (transport);
  THRIFT_UNUSED_VAR (error);
  return TRUE;
}
开发者ID:917386389,项目名称:thrift,代码行数:10,代码来源:thrift_memory_buffer.c

示例12: thrift_binary_protocol_write_message_end

gint32
thrift_binary_protocol_write_message_end (ThriftProtocol *protocol,
                                          GError **error)
{
  /* satisfy -Wall */
  THRIFT_UNUSED_VAR (protocol);
  THRIFT_UNUSED_VAR (error);
  return 0;
}
开发者ID:glycerine,项目名称:thrift,代码行数:9,代码来源:thrift_binary_protocol.c

示例13: thrift_binary_protocol_write_struct_begin

int32_t
thrift_binary_protocol_write_struct_begin (ThriftProtocol *protocol ,
                                           const char *name ,
                                           int *error )
{
  THRIFT_UNUSED_VAR (protocol);
  THRIFT_UNUSED_VAR (name);
  THRIFT_UNUSED_VAR (error);
  return 0;
}
开发者ID:nischalsheth,项目名称:contrail-sandesh,代码行数:10,代码来源:thrift_binary_protocol.c

示例14: thrift_binary_protocol_read_struct_begin

gint32
thrift_binary_protocol_read_struct_begin (ThriftProtocol *protocol,
                                          gchar **name,
                                          GError **error)
{
  THRIFT_UNUSED_VAR (protocol);
  THRIFT_UNUSED_VAR (error);
  *name = NULL;
  return 0;
}
开发者ID:glycerine,项目名称:thrift,代码行数:10,代码来源:thrift_binary_protocol.c

示例15: thrift_test_handler_test_void

gboolean
thrift_test_handler_test_void (TTestThriftTestIf  *iface,
                               GError            **error)
{
  THRIFT_UNUSED_VAR (iface);
  THRIFT_UNUSED_VAR (error);

  printf ("testVoid()\n");

  return TRUE;
}
开发者ID:LiveTex,项目名称:Thrift,代码行数:11,代码来源:thrift_test_handler.c


注:本文中的THRIFT_UNUSED_VAR函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。