~ubuntu-branches/debian/sid/php-cassandra/sid

« back to all changes in this revision

Viewing changes to cassandra-1.3.0/src/Column.c

  • Committer: Package Import Robot
  • Author(s): Ondřej Surý
  • Date: 2017-04-18 17:16:30 UTC
  • Revision ID: package-import@ubuntu.com-20170418171630-fw8udixss0879s32
Tags: upstream-1.3.0
Import upstream version 1.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * Copyright 2015-2016 DataStax, Inc.
 
3
 *
 
4
 * Licensed under the Apache License, Version 2.0 (the "License");
 
5
 * you may not use this file except in compliance with the License.
 
6
 * You may obtain a copy of the License at
 
7
 *
 
8
 * http://www.apache.org/licenses/LICENSE-2.0
 
9
 *
 
10
 * Unless required by applicable law or agreed to in writing, software
 
11
 * distributed under the License is distributed on an "AS IS" BASIS,
 
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
13
 * See the License for the specific language governing permissions and
 
14
 * limitations under the License.
 
15
 */
 
16
 
 
17
#include "php_driver.h"
 
18
 
 
19
zend_class_entry *php_driver_column_ce = NULL;
 
20
 
 
21
ZEND_BEGIN_ARG_INFO_EX(arginfo_none, 0, ZEND_RETURN_VALUE, 0)
 
22
ZEND_END_ARG_INFO()
 
23
 
 
24
static zend_function_entry php_driver_column_methods[] = {
 
25
  PHP_ABSTRACT_ME(Column, name, arginfo_none)
 
26
  PHP_ABSTRACT_ME(Column, type, arginfo_none)
 
27
  PHP_ABSTRACT_ME(Column, isReversed, arginfo_none)
 
28
  PHP_ABSTRACT_ME(Column, isStatic, arginfo_none)
 
29
  PHP_ABSTRACT_ME(Column, isFrozen, arginfo_none)
 
30
  PHP_ABSTRACT_ME(Column, indexName, arginfo_none)
 
31
  PHP_ABSTRACT_ME(Column, indexOptions, arginfo_none)
 
32
  PHP_FE_END
 
33
};
 
34
 
 
35
void php_driver_define_Column(TSRMLS_D)
 
36
{
 
37
  zend_class_entry ce;
 
38
 
 
39
  INIT_CLASS_ENTRY(ce, PHP_DRIVER_NAMESPACE "\\Column", php_driver_column_methods);
 
40
  php_driver_column_ce = zend_register_internal_class(&ce TSRMLS_CC);
 
41
  php_driver_column_ce->ce_flags |= ZEND_ACC_INTERFACE;
 
42
}