Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Implemented PHP-565: Add license files to mcon/

Also fixed the copyright year in the other files, and added a LICENSE.md file.
  • Loading branch information...
commit 8d57a56f8229883949b97c6c9b693745cdf89220 1 parent 3a542c9
Derick Rethans derickr authored

Showing 40 changed files with 356 additions and 47 deletions. Show diff stats Hide diff stats

  1. +13 0 LICENSE.md
  2. +1 2  bson.c
  3. +1 1  bson.h
  4. +1 2  collection.c
  5. +1 2  collection.h
  6. +1 2  cursor.c
  7. +1 2  cursor.h
  8. +1 3 db.c
  9. +1 3 db.h
  10. +1 2  gridfs.c
  11. +1 2  gridfs.h
  12. +3 2 gridfs_stream.c
  13. +1 2  gridfs_stream.h
  14. +15 0 mcon/bson_helpers.c
  15. +15 0 mcon/bson_helpers.h
  16. +15 0 mcon/collection.c
  17. +15 0 mcon/collection.h
  18. +15 0 mcon/connections.c
  19. +15 0 mcon/connections.h
  20. +15 0 mcon/io.c
  21. +15 0 mcon/io.h
  22. +15 0 mcon/manager.c
  23. +15 0 mcon/manager.h
  24. +15 0 mcon/mini_bson.c
  25. +15 0 mcon/mini_bson.h
  26. +15 0 mcon/parse.c
  27. +15 0 mcon/parse.h
  28. +15 0 mcon/read_preference.c
  29. +15 0 mcon/read_preference.h
  30. +15 0 mcon/str.c
  31. +15 0 mcon/str.h
  32. +23 7 mcon/types.h
  33. +15 0 mcon/utils.c
  34. +15 0 mcon/utils.h
  35. +1 3 mongo.c
  36. +1 2  mongo.h
  37. +1 3 mongo_types.c
  38. +1 2  mongo_types.h
  39. +1 2  php_mongo.c
  40. +1 3 php_mongo.h
13 LICENSE.md
Source Rendered
... ... @@ -0,0 +1,13 @@
  1 +Copyright 2009-2012 10gen, Inc.
  2 +
  3 +Licensed under the Apache License, Version 2.0 (the "License");
  4 +you may not use this file except in compliance with the License.
  5 +You may obtain a copy of the License at
  6 +
  7 +http://www.apache.org/licenses/LICENSE-2.0
  8 +
  9 +Unless required by applicable law or agreed to in writing, software
  10 +distributed under the License is distributed on an "AS IS" BASIS,
  11 +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12 +See the License for the specific language governing permissions and
  13 +limitations under the License.
3  bson.c
... ... @@ -1,5 +1,5 @@
1 1 /**
2   - * Copyright 2009-2011 10gen, Inc.
  2 + * Copyright 2009-2012 10gen, Inc.
3 3 *
4 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 5 * you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
13 13 * See the License for the specific language governing permissions and
14 14 * limitations under the License.
15 15 */
16   -
17 16 #include <php.h>
18 17 #include <zend_exceptions.h>
19 18
2  bson.h
... ... @@ -1,5 +1,5 @@
1 1 /**
2   - * Copyright 2009-2011 10gen, Inc.
  2 + * Copyright 2009-2012 10gen, Inc.
3 3 *
4 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 5 * you may not use this file except in compliance with the License.
3  collection.c
... ... @@ -1,5 +1,5 @@
1 1 /**
2   - * Copyright 2009-2011 10gen, Inc.
  2 + * Copyright 2009-2012 10gen, Inc.
3 3 *
4 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 5 * you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
13 13 * See the License for the specific language governing permissions and
14 14 * limitations under the License.
15 15 */
16   -
17 16 #include <php.h>
18 17 #include <zend_exceptions.h>
19 18
3  collection.h
... ... @@ -1,5 +1,5 @@
1 1 /**
2   - * Copyright 2009-2011 10gen, Inc.
  2 + * Copyright 2009-2012 10gen, Inc.
3 3 *
4 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 5 * you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
13 13 * See the License for the specific language governing permissions and
14 14 * limitations under the License.
15 15 */
16   -
17 16 #ifndef MONGO_COLLECTION_H
18 17 #define MONGO_COLLECTION_H
19 18
3  cursor.c
... ... @@ -1,5 +1,5 @@
1 1 /**
2   - * Copyright 2009-2011 10gen, Inc.
  2 + * Copyright 2009-2012 10gen, Inc.
3 3 *
4 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 5 * you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
13 13 * See the License for the specific language governing permissions and
14 14 * limitations under the License.
15 15 */
16   -
17 16 #include <php.h>
18 17 #include <zend_interfaces.h>
19 18 #include <zend_exceptions.h>
3  cursor.h
... ... @@ -1,5 +1,5 @@
1 1 /**
2   - * Copyright 2009-2011 10gen, Inc.
  2 + * Copyright 2009-2012 10gen, Inc.
3 3 *
4 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 5 * you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
13 13 * See the License for the specific language governing permissions and
14 14 * limitations under the License.
15 15 */
16   -
17 16 #ifndef MONGO_CURSOR_H
18 17 #define MONGO_CURSOR_H 1
19 18
4 db.c
... ... @@ -1,5 +1,5 @@
1 1 /**
2   - * Copyright 2009-2011 10gen, Inc.
  2 + * Copyright 2009-2012 10gen, Inc.
3 3 *
4 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 5 * you may not use this file except in compliance with the License.
@@ -13,8 +13,6 @@
13 13 * See the License for the specific language governing permissions and
14 14 * limitations under the License.
15 15 */
16   -
17   -
18 16 #include <php.h>
19 17 #include <zend_exceptions.h>
20 18 #include <ext/standard/md5.h>
4 db.h
... ... @@ -1,5 +1,5 @@
1 1 /**
2   - * Copyright 2009-2011 10gen, Inc.
  2 + * Copyright 2009-2012 10gen, Inc.
3 3 *
4 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 5 * you may not use this file except in compliance with the License.
@@ -13,8 +13,6 @@
13 13 * See the License for the specific language governing permissions and
14 14 * limitations under the License.
15 15 */
16   -
17   -
18 16 #ifndef MONGO_DB_H
19 17 #define MONGO_DB_H
20 18
3  gridfs.c
... ... @@ -1,5 +1,5 @@
1 1 /**
2   - * Copyright 2009-2011 10gen, Inc.
  2 + * Copyright 2009-2012 10gen, Inc.
3 3 *
4 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 5 * you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
13 13 * See the License for the specific language governing permissions and
14 14 * limitations under the License.
15 15 */
16   -
17 16 #include <php.h>
18 17 #ifdef WIN32
19 18 # ifndef int64_t
3  gridfs.h
... ... @@ -1,5 +1,5 @@
1 1 /**
2   - * Copyright 2009-2011 10gen, Inc.
  2 + * Copyright 2009-2012 10gen, Inc.
3 3 *
4 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 5 * you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
13 13 * See the License for the specific language governing permissions and
14 14 * limitations under the License.
15 15 */
16   -
17 16 #ifndef MONGO_GRIDFS_H
18 17 #define MONGO_GRIDFS_H
19 18
5 gridfs_stream.c
... ... @@ -1,5 +1,5 @@
1 1 /**
2   - * Copyright 2009-2011 10gen, Inc.
  2 + * Copyright 2009-2012 10gen, Inc.
3 3 *
4 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 5 * you may not use this file except in compliance with the License.
@@ -12,8 +12,9 @@
12 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 13 * See the License for the specific language governing permissions and
14 14 * limitations under the License.
  15 + *
  16 + * Author: César D. Rodas <crodas@php.net>
15 17 */
16   -/* Author: César D. Rodas <crodas@php.net> */
17 18 #include <php.h>
18 19 #ifdef WIN32
19 20 #ifndef int64_t
3  gridfs_stream.h
... ... @@ -1,5 +1,5 @@
1 1 /**
2   - * Copyright 2009-2011 10gen, Inc.
  2 + * Copyright 2009-2012 10gen, Inc.
3 3 *
4 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 5 * you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
13 13 * See the License for the specific language governing permissions and
14 14 * limitations under the License.
15 15 */
16   -
17 16 #ifndef MONGO_GRIDFS_STREAM_H
18 17 #define MONGO_GRIDFS_STREAM_H
19 18
15 mcon/bson_helpers.c
... ... @@ -1,3 +1,18 @@
  1 +/**
  2 + * Copyright 2009-2012 10gen, 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 + */
1 16 #include "types.h"
2 17 #include "bson_helpers.h"
3 18 #include "str.h"
15 mcon/bson_helpers.h
... ... @@ -1,3 +1,18 @@
  1 +/**
  2 + * Copyright 2009-2012 10gen, 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 + */
1 16 #include "str.h"
2 17 #include <sys/types.h>
3 18
15 mcon/collection.c
... ... @@ -1,3 +1,18 @@
  1 +/**
  2 + * Copyright 2009-2012 10gen, 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 + */
1 16 #include "collection.h"
2 17 #include <stdlib.h>
3 18
15 mcon/collection.h
... ... @@ -1,3 +1,18 @@
  1 +/**
  2 + * Copyright 2009-2012 10gen, 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 + */
1 16 #ifndef __MCON_COLLECTION_H__
2 17 #define __MCON_COLLECTION_H__
3 18
15 mcon/connections.c
... ... @@ -1,3 +1,18 @@
  1 +/**
  2 + * Copyright 2009-2012 10gen, 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 + */
1 16 #include <string.h>
2 17 #include "types.h"
3 18 #include "utils.h"
15 mcon/connections.h
... ... @@ -1,3 +1,18 @@
  1 +/**
  2 + * Copyright 2009-2012 10gen, 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 + */
1 16 #ifndef __MCON_CONNECTION_H__
2 17 #define __MCON_CONNECTION_H__
3 18
15 mcon/io.c
... ... @@ -1,3 +1,18 @@
  1 +/**
  2 + * Copyright 2009-2012 10gen, 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 + */
1 16 #include <string.h>
2 17 #include <errno.h>
3 18 #include <sys/types.h>
15 mcon/io.h
... ... @@ -1,3 +1,18 @@
  1 +/**
  2 + * Copyright 2009-2012 10gen, 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 + */
1 16 #ifndef __MCON_IO_H__
2 17 #define __MCON_IO_H__
3 18
15 mcon/manager.c
... ... @@ -1,3 +1,18 @@
  1 +/**
  2 + * Copyright 2009-2012 10gen, 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 + */
1 16 #include <stdlib.h>
2 17 #include <stdio.h>
3 18 #include <string.h>
15 mcon/manager.h
... ... @@ -1,3 +1,18 @@
  1 +/**
  2 + * Copyright 2009-2012 10gen, 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 + */
1 16 #ifndef __MCON_MANAGER_H__
2 17 #define __MCON_MANAGER_H__
3 18
15 mcon/mini_bson.c
... ... @@ -1,3 +1,18 @@
  1 +/**
  2 + * Copyright 2009-2012 10gen, 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 + */
1 16 #include <stdlib.h>
2 17 #include <string.h>
3 18 #include <stdio.h>
15 mcon/mini_bson.h
... ... @@ -1,3 +1,18 @@
  1 +/**
  2 + * Copyright 2009-2012 10gen, 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 + */
1 16 #ifndef __MCON_MINI_BSON_H__
2 17 #define __MCON_MINI_BSON_H__
3 18
15 mcon/parse.c
... ... @@ -1,3 +1,18 @@
  1 +/**
  2 + * Copyright 2009-2012 10gen, 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 + */
1 16 #include <stdlib.h>
2 17 #include <stdio.h>
3 18 #include <string.h>
15 mcon/parse.h
... ... @@ -1,3 +1,18 @@
  1 +/**
  2 + * Copyright 2009-2012 10gen, 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 + */
1 16 #ifndef __MCON_PARSE_H__
2 17 #define __MCON_PARSE_H__
3 18
15 mcon/read_preference.c
... ... @@ -1,3 +1,18 @@
  1 +/**
  2 + * Copyright 2009-2012 10gen, 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 + */
1 16 #include "collection.h"
2 17 #include "types.h"
3 18 #include "read_preference.h"
15 mcon/read_preference.h
... ... @@ -1,3 +1,18 @@
  1 +/**
  2 + * Copyright 2009-2012 10gen, 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 + */
1 16 #ifndef __MCON_READ_PREFERENCE_H__
2 17 #define __MCON_READ_PREFERENCE_H__
3 18
15 mcon/str.c
... ... @@ -1,3 +1,18 @@
  1 +/**
  2 + * Copyright 2009-2012 10gen, 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 + */
1 16 #include <stdarg.h>
2 17 #include <stdio.h>
3 18 #include <stdlib.h>
15 mcon/str.h
... ... @@ -1,3 +1,18 @@
  1 +/**
  2 + * Copyright 2009-2012 10gen, 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 + */
1 16 #ifndef __HAVE_MCON_STR_H__
2 17 #define __HAVE_MCON_STR_H__
3 18
30 mcon/types.h
... ... @@ -1,3 +1,18 @@
  1 +/**
  2 + * Copyright 2009-2012 10gen, 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 + */
1 16 #ifndef __MCON_TYPES_H__
2 17 #define __MCON_TYPES_H__
3 18
@@ -71,16 +86,17 @@ typedef unsigned __int64 uint64_t;
71 86 #define MLOG_ALL 31 /* Must be the bit sum of all above */
72 87
73 88
74   -/* Stores all the information about the connection. The hash is a group of
75   - * parameters to identify a unique connection. */
76   -
77 89 typedef int (mongo_cleanup_t)(void *callback_data);
78   -typedef struct _mongo_connection_deregister_callback {
79   - void *callback_data;
80   - mongo_cleanup_t *mongo_cleanup_cb;
81   - struct _mongo_connection_deregister_callback *next;
  90 +
  91 +typedef struct _mongo_connection_deregister_callback
  92 +{
  93 + void *callback_data;
  94 + mongo_cleanup_t *mongo_cleanup_cb;
  95 + struct _mongo_connection_deregister_callback *next;
82 96 } mongo_connection_deregister_callback;
83 97
  98 +/* Stores all the information about the connection. The hash is a group of
  99 + * parameters to identify a unique connection. */
84 100 typedef struct _mongo_connection
85 101 {
86 102 time_t last_ping; /* The timestamp when ping was called last */
15 mcon/utils.c
... ... @@ -1,3 +1,18 @@
  1 +/**
  2 + * Copyright 2009-2012 10gen, 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 + */
1 16 #include <stdlib.h>
2 17 #include <stdio.h>
3 18 #include <string.h>
15 mcon/utils.h
... ... @@ -1,3 +1,18 @@
  1 +/**
  2 + * Copyright 2009-2012 10gen, 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 + */
1 16 #ifndef __MCON_UTILS_H__
2 17 #define __MCON_UTILS_H__
3 18
4 mongo.c
... ... @@ -1,5 +1,5 @@
1 1 /**
2   - * Copyright 2009-2011 10gen, Inc.
  2 + * Copyright 2009-2012 10gen, Inc.
3 3 *
4 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 5 * you may not use this file except in compliance with the License.
@@ -13,8 +13,6 @@
13 13 * See the License for the specific language governing permissions and
14 14 * limitations under the License.
15 15 */
16   -
17   -
18 16 #include <stdlib.h>
19 17 #include <string.h>
20 18 #include <errno.h>
3  mongo.h
... ... @@ -1,5 +1,5 @@
1 1 /**
2   - * Copyright 2009-2011 10gen, Inc.
  2 + * Copyright 2009-2012 10gen, Inc.
3 3 *
4 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 5 * you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
13 13 * See the License for the specific language governing permissions and
14 14 * limitations under the License.
15 15 */
16   -
17 16 #ifndef MONGO_H
18 17 #define MONGO_H
19 18
4 mongo_types.c
... ... @@ -1,6 +1,5 @@
1   -//mongo_types.c
2 1 /**
3   - * Copyright 2009-2011 10gen, Inc.
  2 + * Copyright 2009-2012 10gen, Inc.
4 3 *
5 4 * Licensed under the Apache License, Version 2.0 (the "License");
6 5 * you may not use this file except in compliance with the License.
@@ -14,7 +13,6 @@
14 13 * See the License for the specific language governing permissions and
15 14 * limitations under the License.
16 15 */
17   -
18 16 #include <stdlib.h>
19 17
20 18 #ifdef WIN32
3  mongo_types.h
... ... @@ -1,5 +1,5 @@
1 1 /**
2   - * Copyright 2009-2011 10gen, Inc.
  2 + * Copyright 2009-2012 10gen, Inc.
3 3 *
4 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 5 * you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
13 13 * See the License for the specific language governing permissions and
14 14 * limitations under the License.
15 15 */
16   -
17 16 #ifndef PHP_MONGO_TYPES_H
18 17 #define PHP_MONGO_TYPES_H 1
19 18
3  php_mongo.c
... ... @@ -1,5 +1,5 @@
1 1 /**
2   - * Copyright 2009-2011 10gen, Inc.
  2 + * Copyright 2009-2012 10gen, Inc.
3 3 *
4 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 5 * you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
13 13 * See the License for the specific language governing permissions and
14 14 * limitations under the License.
15 15 */
16   -
17 16 #ifdef HAVE_CONFIG_H
18 17 #include "config.h"
19 18 #endif
4 php_mongo.h
... ... @@ -1,5 +1,5 @@
1 1 /**
2   - * Copyright 2009-2011 10gen, Inc.
  2 + * Copyright 2009-2012 10gen, Inc.
3 3 *
4 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 5 * you may not use this file except in compliance with the License.
@@ -13,8 +13,6 @@
13 13 * See the License for the specific language governing permissions and
14 14 * limitations under the License.
15 15 */
16   -
17   -
18 16 #ifndef PHP_MONGO_H
19 17 #define PHP_MONGO_H 1
20 18

0 comments on commit 8d57a56

Please sign in to comment.
Something went wrong with that request. Please try again.